File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ func testDiags() {
22
22
23
23
let _: String = SR2511 ( ) . y // expected-error {{cannot convert value of type 'UInt32' to specified type 'String'}}
24
24
25
- // FIXME: This constant doesn't seem to be imported at all. At least one of
26
- // the following two names should work .
27
- let _: String = SR2511B // expected-error {{use of unresolved identifier 'SR2511B '}}
25
+ // The nested anonymous enum value should still have top-level scope, because
26
+ // that's how C works. It should also have the same type as the field (above) .
27
+ let _: String = SR2511B // expected-error {{cannot convert value of type 'UInt32' to specified type 'String '}}
28
28
let _: String = SR2511 . SR2511B // expected-error {{type 'SR2511' has no member 'SR2511B'}}
29
29
}
30
30
#endif
You can’t perform that action at this time.
0 commit comments