diff options
Diffstat (limited to 'tests/generics/timports.nim')
-rw-r--r-- | tests/generics/timports.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/generics/timports.nim b/tests/generics/timports.nim index 43f096664..6b71cb6d3 100644 --- a/tests/generics/timports.nim +++ b/tests/generics/timports.nim @@ -46,6 +46,11 @@ block tdotlookup: x.set("hello", "world") result = x doAssert abc(5) == 10 + block: # ensure normal call is consistent with dot call + proc T(x: int): float = x.float + proc foo[T](x: int) = + doAssert typeof(T(x)) is typeof(x.T) + foo[uint](123) block tmodule_same_as_proc: # bug #1965 |