import macros type A[T] = object x: T type B[T] = ref object x: T macro genConstructor(typ: typed): untyped = echo typ.getTypeInst[1].symbol.getImpl[1].treeRepr genConstructor A genConstructor B
- Can't get generic parameters of ref object in macro vega
- Re: Can't get generic parameters of ref object in macro Krux02