This commit is contained in:
jcosborn
2018-11-07 01:40:00 -06:00
committed by Arne Döring
parent b9cdad7497
commit fc740c54ec
2 changed files with 15 additions and 1 deletions

View File

@@ -201,3 +201,14 @@ test(MyObj):
_ = object {.packed,myAttr,serializationKey: "one".}
myField: int
myField2: float
block t9600:
type
Apple = ref object of RootObj
macro mixer(x: typed): untyped =
let w = getType(x)
let v = getTypeImpl(w[1])
var z: Apple
mixer(z)