Files
swift-mirror/validation-test/compiler_crashers_2_fixed/sr10108.swift
2019-03-18 22:40:50 +00:00

15 lines
219 B
Swift

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