summary refs log tree commit diff stats
path: root/tests/overload/toverl4.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/overload/toverl4.nim')
-rw-r--r--tests/overload/toverl4.nim12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/overload/toverl4.nim b/tests/overload/toverl4.nim
index 455a73515..21cedaa96 100644
--- a/tests/overload/toverl4.nim
+++ b/tests/overload/toverl4.nim
@@ -1,5 +1,6 @@
 discard """
-  output: '''true'''
+  output: '''true
+5.0'''
 """
 
 #bug #592
@@ -89,3 +90,12 @@ proc does_fail(): Foo =
   result.bar(5, a)
 
 doAssert does_fail().bar == 0
+
+# bug #20645
+
+type Zzz[Gen] = object
+
+proc testZ(z: Zzz) =
+  echo z.Gen(5)
+
+testZ(Zzz[float]())