geekrelief/genit

Instead of `genWith` use the expand operator on a typeName argument.

Closed this issue · 1 comments

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

The expand operator was added with the rewrite.