9a2b98cd8 ^
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
type Foo*[T] = object v*: T template `+`*(x: Foo, y: Foo): untyped = x template newvar*(r: untyped): untyped {.dirty.} = var r: float template t1*(x: Foo): untyped = newvar(y1) x template t2*(x: Foo): untyped = newvar(y2) x