From 48d41ab375498ba638863b55807bac96eccf667a Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 24 Oct 2022 21:41:29 +0200 Subject: fixes #20645 (#20646) * fixes #20645 * better bugfix --- tests/overload/toverl4.nim | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tests/overload') 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]()) -- cgit 1.4.1-2-gfad0