blob: 7b6e47b865789e94380ef7a8a6ce51e78f9d747f (
plain) (
tree)
|
|
discard """
nimout: "var mysym`gensym0: MyType[float32]"
joinable: false
"""
import macros
type
MyType[T] = object
# this is totally fine
var mysym: MyType[float32]
macro foobar(): untyped =
let floatSym = bindSym"float32"
result = quote do:
var mysym: MyType[`floatSym`]
echo result.repr
foobar()
|