fixes quoted variables with typedesc types (#21493)

This commit is contained in:
ringabout 2023-03-09 15:09:08 +08:00 • committed by GitHub
commit 72e262666b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)