Skip to content

Commit 7d9b304

Browse files
committed
[Macros] Fix odd test case
The implementation was previously finding the wrong macro declaration, leading to incorrect results recorded as the expected results.
1 parent 6ac69d8 commit 7d9b304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/IDE/complete_macro_declaration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ macro expect(file: Int = #^DEFAULT_ARG^#) = #externalMacro(module: "MyModule", t
77
// DEFAULT_ARG: Decl[GlobalVar]/CurrModule/TypeRelation[Convertible]: globalVar[#Int#]; name=globalVar
88

99
@freestanding(expression)
10-
macro externalMacro() = ##^EXTERNAL_MACRO^#
10+
macro otherExternalMacro() = ##^EXTERNAL_MACRO^#
1111
// EXTERNAL_MACRO: Decl[Macro]/OtherModule[Swift]/IsSystem: externalMacro({#module: String#}, {#type: String#})[#T#]; name=externalMacro(module:type:)
1212

1313
@freestanding(expression)

0 commit comments

Comments
 (0)