Spurious error message using `some` when using wrong number of primary associated types for protocol
triage needed
### Description
The code below emits an error
> 'some' types are only permitted in properties, subscripts, and functions
in addition to the (correct) error about AsyncSequence expecting two parameters, not just one.
### Reproduction
```swift
func test() -> some AsyncSequence<String> { [:] }
```
### Expected behavior
No error on the `some`, only on the specialized(?) protocol type itself.
### Environment
Swift version 6.5-dev (LLVM 8f81a64f6a8bcf6, Swift 4d0c97fa5b05711) from swift.godbolt.org
### Additional information
_No response_
0 条评论