summary refs log tree commit diff stats
path: root/tests/overload
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2022-10-24 21:41:29 +0200
committerGitHub <noreply@github.com>2022-10-24 21:41:29 +0200
commit48d41ab375498ba638863b55807bac96eccf667a (patch)
tree5c5f1e760472ff73d9fbb23f233b045d7eb54f8f /tests/overload
parentea0e45e62f0f8dde71698c2b5d4468385374be94 (diff)
downloadNim-48d41ab375498ba638863b55807bac96eccf667a.tar.gz
fixes #20645 (#20646)
* fixes #20645

* better bugfix
Diffstat (limited to 'tests/overload')
-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]())