summary refs log tree commit diff stats
path: root/compiler/sigmatch.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-04-29 21:58:59 +0200
committerGitHub <noreply@github.com>2020-04-29 21:58:59 +0200
commitd9e907c0e2a58630f7b57c0afbe51c05fcf6b3ab (patch)
treeee7ad5e4bf27372a763dda5426dcd3ebdb4bc9f0 /compiler/sigmatch.nim
parent707367e1ca231d964ba82a92b642eb5efdc1aa7c (diff)
downloadNim-d9e907c0e2a58630f7b57c0afbe51c05fcf6b3ab.tar.gz
fixes #14079 [backport:1.2] (#14163)
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r--compiler/sigmatch.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 6c8f926dd..e209f5d78 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -548,7 +548,8 @@ proc allowsNilDeprecated(c: TCandidate, f: PType): TTypeRelation =
     result = isNone
 
 proc inconsistentVarTypes(f, a: PType): bool {.inline.} =
-  result = f.kind != a.kind and (f.kind in {tyVar, tyLent} or a.kind in {tyVar, tyLent})
+  result = f.kind != a.kind and
+    (f.kind in {tyVar, tyLent, tySink} or a.kind in {tyVar, tyLent, tySink})
 
 proc procParamTypeRel(c: var TCandidate, f, a: PType): TTypeRelation =
   ## For example we have: