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
// enums with non-conforming payloads don’t get synthesized Comparable
340
-
enumNotice:Comparable{ // expected-error{{type 'Notice' does not conform to protocol 'Comparable'}} expected-error{{type 'Notice' does not conform to protocol 'Equatable'}} expected-note {{do you want to add protocol stubs?}} expected-note {{do you want to add protocol stubs?}}
340
+
enumNotice:Comparable{ // expected-error{{type 'Notice' does not conform to protocol 'Comparable'}} expected-error{{type 'Notice' does not conform to protocol 'Equatable'}}
341
341
case taylor((Int,Int)), taylornation(Int) // expected-note{{associated value type '(Int, Int)' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Notice' to 'Equatable'}}
342
342
}
343
343
344
344
// neither do enums with raw values
345
-
enumTrack:Int,Comparable{ // expected-error{{type 'Track' does not conform to protocol 'Comparable'}} expected-note {{do you want to add protocol stubs?}}
345
+
enumTrack:Int,Comparable{ // expected-error{{type 'Track' does not conform to protocol 'Comparable'}}
0 commit comments