* fixes #20645

* better bugfix
This commit is contained in:
Andreas Rumpf 2022-10-24 21:41:29 +02:00 • committed by GitHub
commit 48d41ab375
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 7 deletions

View file

@ -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]())