diff options
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r-- | compiler/sigmatch.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 13546eae2..9a00a308b 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -649,8 +649,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation = if a.kind == tyEmpty: result = isEqual of tyGenericInst: - if a.kind == tyGenericInst: - if a.base != f.base: return isNone + if a.kind == tyGenericInst and a.base == f.base: for i in 1 .. f.sonsLen-2: result = typeRel(c, f.sons[i], a.sons[i]) if result == isNone: return |