fixes quoted variables with typedesc types (#21493)

This commit is contained in:
ringabout
2023-03-09 15:09:08 +08:00
committed by GitHub
parent 8e9fc5e639
commit 72e262666b
2 changed files with 9 additions and 1 deletions

View File

@@ -311,3 +311,11 @@ block: # bug #9607
doAssert echoL() == "bar"
doAssert echoM() == "bar"
block:
macro hello[T](x: T): untyped =
result = quote do:
let m: `T` = `x`
discard m
hello(12)