mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
357 B
Swift
11 lines
357 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
public enum E : E.R {
|
|
// expected-error@-1 {{'E' has a raw type that depends on itself}}
|
|
// expected-note@-2 2{{through reference here}}
|
|
// expected-note@-3 {{while resolving type 'E.R'}}
|
|
// expected-error@-4 {{'R' is not a member type of enum 'rdar123543175.E'}}
|
|
// expected-note@-5 {{'E' declared here}}
|
|
case x
|
|
}
|