diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-08-30 11:26:23 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-09-01 13:02:53 +0200 |
commit | f6a2ff731b8d7288542d8dff93937c68d721edd1 (patch) | |
tree | 547c3a011b6e046f2db4133679f859bcf8c19a3e /compiler/sigmatch.nim | |
parent | 0a90613288e4944cdae032ff3fea8fd0829a2e20 (diff) | |
download | Nim-f6a2ff731b8d7288542d8dff93937c68d721edd1.tar.gz |
fixes #4672
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r-- | compiler/sigmatch.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 7cdaa197d..1abfaab69 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -1075,7 +1075,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation = of tyBuiltInTypeClass: considerPreviousT: let targetKind = f.sons[0].kind - if targetKind == a.skipTypes({tyRange, tyGenericInst}).kind or + if targetKind == a.skipTypes({tyRange, tyGenericInst, tyBuiltInTypeClass}).kind or (targetKind in {tyProc, tyPointer} and a.kind == tyNil): put(c, f, a) return isGeneric |