File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,9 @@ public struct LocalFuncAndVarMacro: DeclarationMacro {
66
66
@available ( SwiftStdlib 9999 , * )
67
67
#globalDecls
68
68
69
- func testGlobal( ) { // expected-note {{add @available attribute to enclosing global function}}
69
+ func testGlobal( ) { // expected-note 2 {{add @available attribute to enclosing global function}}
70
70
globalFunc ( ) // expected-error {{'globalFunc()' is only available in macOS 9999 or newer}} expected-note {{add 'if #available' version check}}
71
- // FIXME(109376568): Global variable introduced by macro expansion not found
72
- _ = globalVar // expected-error {{cannot find 'globalVar' in scope}}
71
+ _ = globalVar // expected-error {{'globalVar' is only available in macOS 9999 or newer}} expected-note {{add 'if #available' version check}}
73
72
}
74
73
75
74
struct S {
You can’t perform that action at this time.
0 commit comments