Files
swift-mirror/validation-test/compiler_crashers_2_fixed/rdar123543175.swift
Slava Pestov 41df661160 AST: Use a builtin conformance for unconditional Copyable/Escapable
This generalizes what we were already doing for classes.
2024-03-07 15:07:47 -05:00

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
}