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
/// Make sure we don't diagnose 'static let none = 1', but do diagnose 'static let none = TheEnum.anotherCase' ///
481
+
458
482
let _:EnumWithStaticNone1?=.none // Okay
459
483
let _:EnumWithStaticNone2?=.none // expected-warning {{assuming you mean 'Optional<EnumWithStaticNone2>.none'; did you mean 'EnumWithStaticNone2.none' instead?}}
460
484
// expected-note@-1 {{explicitly specify 'Optional' to silence this warning}}{{31-31=Optional}}
/// Make sure we diagnose if we have both static and instance 'none' member regardless of source order ///
488
+
489
+
let _:EnumWithStaticNone3?=.none // expected-warning {{assuming you mean 'Optional<EnumWithStaticNone3>.none'; did you mean 'EnumWithStaticNone3.none' instead?}}
490
+
// expected-note@-1 {{explicitly specify 'Optional' to silence this warning}}{{31-31=Optional}}
let _:EnumWithStaticNone4?=.none // expected-warning {{assuming you mean 'Optional<EnumWithStaticNone4>.none'; did you mean 'EnumWithStaticNone4.none' instead?}}
493
+
// expected-note@-1 {{explicitly specify 'Optional' to silence this warning}}{{31-31=Optional}}
0 commit comments