diff options
author | cooldome <ariabushenko@gmail.com> | 2021-01-06 10:47:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 10:47:03 +0000 |
commit | 58b9191354aa99ac2d17f9a7db3bdf239c7bce6b (patch) | |
tree | 898a75a56588a230a8b4862d144ee433c97b8cc0 /compiler | |
parent | d721f5cecad90a0aa7e2ea144607ffafdf647e31 (diff) | |
download | Nim-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.nim | 2 |
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: |