Avatar
Avatar
Iceman
@swift-6.1.2 @swift-main protocol MyType {} public protocol P { var a: MyType { get } } enum E { public protocol P { var a: MyType { get } } }
exit status: 1 with <stdin>:4:9: error: property cannot be declared public because its type uses an internal type 1 | protocol MyType {} | `- note: type declared here 2 | 3 | public protocol P { 4 | var a: MyType { get } | `- error: property cannot be declared public because its type uses an internal type 5 | } 6 |