Again, please excuse my ignorance, nim newbie here!
I am trying to understand why this code does not work. Maybe I'm too much spoilt of #define under C :) So, is this just a hard language restriction or am I missing something?
type
Base = ref object of RootObj
Child = ref object of Base
method test(self:Base): int {.base.}= 0
template builder(otype:untyped): int =
method test(self:otype): int = -1
builder(Child)