From fe55dcb2be26e9b955ad949a65bf94e65478a1ab Mon Sep 17 00:00:00 2001 From: metagn Date: Tue, 17 Sep 2024 04:50:10 +0300 Subject: test case haul before 2.2 (#24119) closes #4774, closes #7385, closes #10019, closes #12405, closes #12732, closes #13270, closes #13799, closes #15247, closes #16128, closes #16175, closes #16774, closes #17527, closes #20880, closes #21346 --- tests/lookups/mmacroamb.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/lookups/mmacroamb.nim (limited to 'tests/lookups/mmacroamb.nim') diff --git a/tests/lookups/mmacroamb.nim b/tests/lookups/mmacroamb.nim new file mode 100644 index 000000000..107e51055 --- /dev/null +++ b/tests/lookups/mmacroamb.nim @@ -0,0 +1,10 @@ +# issue #12732 + +import std/macros +const getPrivate3_tmp* = 0 +const foobar1* = 0 # comment this or make private and it'll compile fine +macro foobar4*(): untyped = + newLit "abc" +template currentPkgDir2*: string = foobar4() +macro currentPkgDir2*(dir: string): untyped = + newLit "abc2" -- cgit 1.4.1-2-gfad0