mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
An incorrectly-specified starting context for name lookup meant that macro lookup itself was failing, and therefore did not trigger expansion of the freestanding macro or introduction of the macro-expanded declarations into the context. Fixes rdar://108824784.
5 lines
237 B
Swift
5 lines
237 B
Swift
import freestanding_macro_library
|
|
|
|
@freestanding(declaration, names: arbitrary)
|
|
public macro bitwidthNumberedStructs(_ baseName: String, blah: Bool) = #externalMacro(module: "MacroDefinition", type: "DefineBitwidthNumberedStructsMacro")
|