Files
swift-mirror/validation-test/compiler_crashers_2_fixed/issue-52510.swift

16 lines
266 B
Swift

// RUN: not %target-swift-frontend -typecheck %s
// https://github.com/apple/swift/issues/52510
// Just make sure we don't crash.
enum Crash: String {
case foo
case bar(String)
static let shared = Crash()
}
extension Crash {
init() { self = .foo }
}