Skip to content

Commit 8947080

Browse files
committed
Update a fixed test
1 parent 4e4ef22 commit 8947080

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/Macros/macro_attribute_expansiondecl.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ public struct LocalFuncAndVarMacro: DeclarationMacro {
6666
@available(SwiftStdlib 9999, *)
6767
#globalDecls
6868

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}}
7070
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}}
7372
}
7473

7574
struct S {

0 commit comments

Comments
 (0)