You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enumEnumWithInheritance1:FooNonExistentProtocol{} // expected-error {{use of undeclared type 'FooNonExistentProtocol'}}
112
+
enumEnumWithInheritance1:FooNonExistentProtocol{} // expected-error {{use of undeclared type 'FooNonExistentProtocol'}} expected-error {{raw type}} expected-error {{an enum with no cases}}
enumEnumWithInheritance2:FooNonExistentProtocol,BarNonExistentProtocol{} // expected-error {{use of undeclared type 'FooNonExistentProtocol'}} expected-error {{use of undeclared type 'BarNonExistentProtocol'}}
116
+
enumEnumWithInheritance2:FooNonExistentProtocol,BarNonExistentProtocol{} // expected-error {{use of undeclared type 'FooNonExistentProtocol'}} expected-error {{use of undeclared type 'BarNonExistentProtocol'}} expected-error {{raw type}} expected-error {{an enum with no cases}}
Copy file name to clipboardExpand all lines: test/Sema/accessibility_private.swift
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -197,6 +197,7 @@ extension Container {
197
197
// expected-error@-1 {{raw type 'Container.VeryPrivateStruct' is not expressible by a string, integer, or floating-point literal}}
198
198
// expected-error@-2 {{'Container.PrivateRawValue' declares raw type 'Container.VeryPrivateStruct', but does not conform to RawRepresentable and conformance could not be synthesized}}
199
199
// expected-error@-3 {{RawRepresentable conformance cannot be synthesized because raw type 'Container.VeryPrivateStruct' is not Equatable}}
200
+
// expected-error@-4 {{an enum with no cases cannot declare a raw type}}
200
201
fileprivateenumPrivatePayload{
201
202
case A(VeryPrivateStruct) // expected-error {{enum case in an internal enum uses a private type}} {{none}}
// expected-error@-2{{'ArrayOfNewEquatable' declares raw type 'Array<NotEquatable>', but does not conform to RawRepresentable and conformance could not be synthesized}}
190
190
// expected-error@-3{{RawRepresentable conformance cannot be synthesized because raw type 'Array<NotEquatable>' is not Equatable}}
191
191
// expected-note@-4{{do you want to add protocol stubs?}}
192
+
// expected-error@-5 {{an enum with no cases cannot declare a raw type}}
0 commit comments