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 4e4ef22 commit e508e03Copy full SHA for e508e03
test/Macros/macro_attribute_expansiondecl.swift
@@ -68,8 +68,7 @@ public struct LocalFuncAndVarMacro: DeclarationMacro {
68
69
func testGlobal() { // expected-note {{add @available attribute to enclosing global function}}
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}}
+ _ = globalVar // expected-error {{'globalVar' is only available in macOS 9999 or newer}} expected-note {{add 'if #available' version check}}
73
}
74
75
struct S {
0 commit comments