summary refs log tree commit diff stats
path: root/tests/generics/mclosed_sym.nim
blob: bcccd9a85d72807365cb4d26e593f76205bc0671 (plain) (blame)
1
2
3
4
5
6
7
8
9
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