summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorcooldome <ariabushenko@gmail.com>2021-01-06 10:47:03 +0000
committerGitHub <noreply@github.com>2021-01-06 10:47:03 +0000
commit58b9191354aa99ac2d17f9a7db3bdf239c7bce6b (patch)
tree898a75a56588a230a8b4862d144ee433c97b8cc0 /compiler
parentd721f5cecad90a0aa7e2ea144607ffafdf647e31 (diff)
downloadNim-58b9191354aa99ac2d17f9a7db3bdf239c7bce6b.tar.gz
fix #16516 method dispatch for sink args (#16594)
* fix #16516

* fix comment

* Trigger build
Diffstat (limited to 'compiler')
-rw-r--r--compiler/cgmeth.nim2
1 files changed, 1 insertions, 1 deletions
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: