mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
fixes quoted variables with typedesc types (#21493)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user