Instead of `genWith` use the expand operator on a typeName argument.
Closed this issue · 1 comments
geekrelief commented
Instead of:
Color = object
r, g, b: uint8
var c: Color
genWith Color:
c.it = 255'u8
do:
Color = object
r, g, b: uint8
var c: Color
gen ~Color:
c.it = 255'u8
geekrelief commented
The expand operator was added with the rewrite.