We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a39e7d commit 389232aCopy full SHA for 389232a
test/decl/enum/enumtest.swift
@@ -509,7 +509,7 @@ let _: GenericEnumWithStaticNone<Int>? = .none // expected-warning {{assuming yo
509
// expected-note@-1 {{explicitly specify 'Optional' to silence this warning}}{{42-42=Optional}}
510
// expected-note@-2 {{use 'GenericEnumWithStaticNone<Int>.none' instead}}{{42-42=GenericEnumWithStaticNone<Int>}}
511
let _: GenericEnumWithStaticNone<String>? = .none // Okay
512
-let _: GenericEnumWithStaticNone? = .none // Okay
+let _: GenericEnumWithStaticNone? = .none // FIXME(SR-11535): This should be diagnosed
513
514
enum GenericEnumWithoutNone<T> {
515
case a
0 commit comments