mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
346 B
Swift
19 lines
346 B
Swift
// {"signature":"(anonymous namespace)::Verifier::verifyChecked(swift::VarDecl*)"}
|
|
// RUN: not --crash %target-swift-frontend -emit-sil %s
|
|
|
|
// https://github.com/swiftlang/swift/issues/80657
|
|
enum E {
|
|
case e
|
|
|
|
static func foo() {
|
|
_ = { [self] in
|
|
switch e {
|
|
case e:
|
|
break
|
|
default:
|
|
break
|
|
}
|
|
}
|
|
}
|
|
}
|