fixes #2590; methods now require a .base annotation

This commit is contained in:
Araq 2015-09-06 02:29:30 +02:00
commit dc047931bb
17 changed files with 69 additions and 32 deletions

View file

@ -10,7 +10,7 @@ type
TParticle = object of TThing
a, b: int
method collide(a, b: TThing) {.inline.} =
method collide(a, b: TThing) {.base, inline.} =
quit "to override!"
method collide[T](a: TThing, b: TUnit[T]) {.inline.} =