mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
If one of the cases is invalid, let's mark parent enum as invalid as well, and avoid trying to derive any conformances related to it. Resolves: rdar://problem/36989792
7 lines
108 B
Swift
7 lines
108 B
Swift
// RUN: not %target-swift-frontend %s -typecheck
|
|
|
|
enum E : Equatable {
|
|
case c(Int)
|
|
case c(String)
|
|
}
|