Files
swift-mirror/validation-test/compiler_crashers_fixed/ContextualFailure-tryProtocolConformanceFixIt-2d4649.swift
Alastair Houghton b6c4cec90b [Tests] Our change fixed another compiler crasher too.
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
2026-06-30 16:58:36 +01:00

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
}