breaking change: symbol lookups in generics follows spec more closely; fixes #2664

This commit is contained in:
Araq 2015-08-07 21:28:45 +02:00
commit c733b3181e
4 changed files with 88 additions and 65 deletions

View file

@ -0,0 +1,10 @@
type R* = object
type Data*[T] = object
d*: T
proc same(r:R, d:int) = echo "TEST2"
proc doIt*(d:Data, r:R) =
r.same(1) # Expecting this to invoke the local `same()` method