mirror of
https://github.com/apple/swift.git
synced 2026-09-30 10:17:34 +02:00
The 2d4649 crasher now generates sensible error messages. Note that it is a horrible mess (and totally syntactically invalid) so I don't think it's worth adding extra tests to check the messages for it. rdar://178854703
6 lines
481 B
Swift
6 lines
481 B
Swift
// {"extraArgs":["-language-mode","6"],"kind":"typecheck","original":"e6383766","signature":"swift::constraints::ContextualFailure::tryProtocolConformanceFixIt() const","signatureAssert":"Assertion failed: (!missingProtoTypeStrings.empty() && \"type already conforms to all the protocols?\"), function tryProtocolConformanceFixIt","signatureNext":"ContextualFailure::tryFixIts"}
|
|
// RUN: not %target-swift-frontend -typecheck -language-mode 6 %s
|
|
class a {
|
|
b{ self= \c ?? self
|
|
}
|