Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0141-rdar36989792.swift
Pavel Yaskevich 38e305cfdc [DeclChecker] Don't try to derive conformances for invalid enums
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
2018-02-05 14:12:55 -08:00

7 lines
108 B
Swift

// RUN: not %target-swift-frontend %s -typecheck
enum E : Equatable {
case c(Int)
case c(String)
}