-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed as duplicate of#47335
Copy link
Labels
compilerThe Swift compiler itselfThe Swift compiler itselfexistentialsFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuestype checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysistypesFeature: typesFeature: types
Description
| Previous ID | SR-13502 |
| Radar | rdar://problem/68376692 |
| Original Reporter | mitchrobertson (JIRA User) |
| Type | Bug |
| Status | Resolved |
| Resolution | Duplicate |
Environment
iOS/Mac
Additional Detail from JIRA
| Votes | 0 |
| Component/s | |
| Labels | Bug |
| Assignee | @slavapestov |
| Priority | Medium |
md5: 41befb185230425037d83439a0756f21
relates to:
Issue Description:
If we create a simple protocol with a type condition like this:
protocol FloatSequence: IteratorProtocol, Sequence where Element == CGFloat {
var count: Int { get }
func reset()
}If I do a global operator overload like this, I have to use empty generics to get it to compile.
func -<FS: FloatSequence>(left: FS, right: FS) -> CGFloat {
// TODO
}Metadata
Metadata
Assignees
Labels
compilerThe Swift compiler itselfThe Swift compiler itselfexistentialsFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuestype checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysistypesFeature: typesFeature: types