From 58b9191354aa99ac2d17f9a7db3bdf239c7bce6b Mon Sep 17 00:00:00 2001 From: cooldome Date: Wed, 6 Jan 2021 10:47:03 +0000 Subject: fix #16516 method dispatch for sink args (#16594) * fix #16516 * fix comment * Trigger build --- compiler/cgmeth.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/cgmeth.nim b/compiler/cgmeth.nim index 5c5d35093..a995804c7 100644 --- a/compiler/cgmeth.nim +++ b/compiler/cgmeth.nim @@ -67,7 +67,7 @@ proc sameMethodBucket(a, b: PSym; multiMethods: bool): MethodResult = while true: aa = skipTypes(aa, {tyGenericInst, tyAlias}) bb = skipTypes(bb, {tyGenericInst, tyAlias}) - if aa.kind == bb.kind and aa.kind in {tyVar, tyPtr, tyRef, tyLent}: + if aa.kind == bb.kind and aa.kind in {tyVar, tyPtr, tyRef, tyLent, tySink}: aa = aa.lastSon bb = bb.lastSon else: -- cgit 1.4.1-2-gfad0