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
Copy file name to clipboardExpand all lines: test/Generics/inheritance.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ func testGenericInherit() {
56
56
57
57
58
58
structSS<T>:T{} // expected-error{{inheritance from non-protocol type 'T'}}
59
-
enumSE<T>:T{case X } // expected-error{{raw type 'T' is not expressible by any literal}} // expected-error {{SE<T>' declares raw type 'T', but does not conform to RawRepresentable and conformance could not be synthesized}} expected-error{{RawRepresentable conformance cannot be synthesized because raw type 'T' is not Equatable}}
59
+
enumSE<T>:T{case X } // expected-error{{raw type 'T' is not expressible by a string, integer, or floating-point literal}} // expected-error {{SE<T>' declares raw type 'T', but does not conform to RawRepresentable and conformance could not be synthesized}} expected-error{{RawRepresentable conformance cannot be synthesized because raw type 'T' is not Equatable}}
enumEnumWithInheritance3:FooClass{case X } // expected-error {{raw type 'FooClass' is not expressible by any literal}}
122
+
enumEnumWithInheritance3:FooClass{case X } // expected-error {{raw type 'FooClass' is not expressible by a string, integer, or floating-point literal}}
123
123
// expected-error@-1{{'EnumWithInheritance3' declares raw type 'FooClass', but does not conform to RawRepresentable and conformance could not be synthesized}}
124
124
// expected-error@-2{{RawRepresentable conformance cannot be synthesized because raw type 'FooClass' is not Equatable}}
enumEnumWithInheritance4:FooClass,FooProtocol{case X } // expected-error {{raw type 'FooClass' is not expressible by any literal}}
128
+
enumEnumWithInheritance4:FooClass,FooProtocol{case X } // expected-error {{raw type 'FooClass' is not expressible by a string, integer, or floating-point literal}}
129
129
// expected-error@-1{{'EnumWithInheritance4' declares raw type 'FooClass', but does not conform to RawRepresentable and conformance could not be synthesized}}
130
130
// expected-error@-2{{RawRepresentable conformance cannot be synthesized because raw type 'FooClass' is not Equatable}}
enumEnumWithInheritance5:FooClass,BarClass{case X } // expected-error {{raw type 'FooClass' is not expressible by any literal}} expected-error {{multiple enum raw types 'FooClass' and 'BarClass'}}
134
+
enumEnumWithInheritance5:FooClass,BarClass{case X } // expected-error {{raw type 'FooClass' is not expressible by a string, integer, or floating-point literal}} expected-error {{multiple enum raw types 'FooClass' and 'BarClass'}}
135
135
// expected-error@-1{{'EnumWithInheritance5' declares raw type 'FooClass', but does not conform to RawRepresentable and conformance could not be synthesized}}
136
136
// expected-error@-2{{RawRepresentable conformance cannot be synthesized because raw type 'FooClass' is not Equatable}}
Copy file name to clipboardExpand all lines: test/Parse/enum.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ enum RawTypeNotFirst : RawTypeNotFirstProtocol, Int { // expected-error {{raw ty
143
143
case E
144
144
}
145
145
146
-
enumExpressibleByRawTypeNotLiteral:Array<Int>{ // expected-error {{raw type 'Array<Int>' is not expressible by any literal}}
146
+
enumExpressibleByRawTypeNotLiteral:Array<Int>{ // expected-error {{raw type 'Array<Int>' is not expressible by a string, integer, or floating-point literal}}
147
147
// expected-error@-1{{'ExpressibleByRawTypeNotLiteral' declares raw type 'Array<Int>', but does not conform to RawRepresentable and conformance could not be synthesized}}
Copy file name to clipboardExpand all lines: test/Sema/accessibility_private.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -194,7 +194,7 @@ extension Container {
194
194
fileprivate subscript(_:VeryPrivateStruct)->Void{return()} // expected-error {{subscript cannot be declared fileprivate because its index uses a private type}} {{none}}
195
195
fileprivatefunc privateMethod(_:VeryPrivateStruct)->Void{} // expected-error {{method cannot be declared fileprivate because its parameter uses a private type}} {{none}}
196
196
fileprivateenumPrivateRawValue:VeryPrivateStruct{} // expected-error {{enum cannot be declared fileprivate because its raw type uses a private type}} {{none}}
197
-
// expected-error@-1 {{raw type 'Container.VeryPrivateStruct' is not expressible by any literal}}
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}}
// expected-error@-1{{raw type 'Array<NotEquatable>' is not expressible by any literal}}
188
+
// expected-error@-1{{raw type 'Array<NotEquatable>' is not expressible by a string, integer, or floating-point literal}}
189
189
// 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}}
0 commit comments