Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0101-sr5014.swift
Doug Gregor dd3869739e [GSB] Don't add invalid concrete requirements.
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.
2017-06-23 22:23:46 -07:00

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()
}
}