Files
swift-mirror/validation-test/compiler_crashers_2/issue-80657.swift
2025-06-16 21:02:30 +01:00

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