diff options
Diffstat (limited to 'compiler')
-rwxr-xr-x | compiler/sigmatch.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index fac7815d1..16a93f47f 100755 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -172,7 +172,9 @@ proc minRel(a, b: TTypeRelation): TTypeRelation = proc tupleRel(mapping: var TIdTable, f, a: PType): TTypeRelation = result = isNone - if sonsLen(a) == sonsLen(f): + if sameType(f, a): + result = isEqual + elif sonsLen(a) == sonsLen(f): result = isEqual for i in countup(0, sonsLen(f) - 1): var m = typeRel(mapping, f.sons[i], a.sons[i]) |