mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When a concrete requirement is invalid due to the concrete type lacking a conformance to a particular, required protocol, don't emit that incorrect requirement---it causes invalid states further down the line. Fixes SR-5014 / rdar://problem/32402482. While here, fix a comment that Huon noticed trailed off into oblivion.
11 lines
209 B
Swift
11 lines
209 B
Swift
// RUN: not %target-swift-frontend -emit-ir -primary-file %s
|
|
|
|
struct Version {
|
|
}
|
|
|
|
extension CountableRange where Bound == Version {
|
|
func contains(_ element: Version) -> Bool {
|
|
fatalError()
|
|
}
|
|
}
|