@def: still seems that the sequence plays a role in a way I don't quite understand here, because this works as intended: type Console* = ref object of RootObj ViewportConsole* = ref object of Console method draw*[T](self: Console, engine: T) {.base.} = echo "Ignoring a Console..." method draw*[T](self: ViewportConsole, engine: T) = echo "Drawing a ViewportConsole on ", engine, "..." var a = new(Console) b = new(ViewportConsole) a.draw(1) b.draw(2)
- Bug with generic methods? 10c8
- Re: Bug with generic methods? Lando
- Re: Bug with generic methods? 10c8
- Re: Bug with generic methods? Lando
- Re: Bug with generic methods? def
- Re: Bug with generic methods? Lando
- Re: Bug with generic methods? Udiknedormin
- Re: Bug with generic methods? def
- Re: Bug with generic methods? Lando
- Re: Bug with generic methods? def
- Re: Bug with generic methods? Lando
- Re: Bug with generic methods? Udiknedormin
- Re: Bug with generic methods? LeuGim
- Re: Bug with generic methods? Lando
- Re: Bug with generic methods? LeuGim
- Re: Bug with generic methods? Udiknedormin