diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-04-29 21:58:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 21:58:59 +0200 |
commit | d9e907c0e2a58630f7b57c0afbe51c05fcf6b3ab (patch) | |
tree | ee7ad5e4bf27372a763dda5426dcd3ebdb4bc9f0 /compiler/sigmatch.nim | |
parent | 707367e1ca231d964ba82a92b642eb5efdc1aa7c (diff) | |
download | Nim-d9e907c0e2a58630f7b57c0afbe51c05fcf6b3ab.tar.gz |
fixes #14079 [backport:1.2] (#14163)
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r-- | compiler/sigmatch.nim | 3 |
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: |