fixes quoted variables with typedesc types (#21493)
This commit is contained in:
parent
8e9fc5e639
commit
72e262666b
2 changed files with 9 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue