mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Lift the limitation of a single active diagnostic, which was a pretty easy-to-hit footgun. We now maintain an array of active in-flight diagnostics, which gets flushed once all them have ended.
9 lines
406 B
Swift
9 lines
406 B
Swift
// {"kind":"typecheck","signature":"(anonymous namespace)::TypeResolver::resolveImplicitlyUnwrappedOptionalType(swift::ImplicitlyUnwrappedOptionalTypeRepr*, swift::TypeResolutionOptions, bool)","signatureAssert":"Assertion failed: (!ActiveDiagnostic && \"Already have an active diagnostic\"), function diagnose"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
{
|
|
enum a: b! {
|
|
}
|
|
guard a else {
|
|
}
|
|
}
|