diff options
-rwxr-xr-x | compiler/sigmatch.nim | 4 | ||||
-rwxr-xr-x | tests/accept/compile/trectuple.nim | 3 |
2 files changed, 3 insertions, 4 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]) diff --git a/tests/accept/compile/trectuple.nim b/tests/accept/compile/trectuple.nim index f60fe2841..4d5febbfa 100755 --- a/tests/accept/compile/trectuple.nim +++ b/tests/accept/compile/trectuple.nim @@ -1,6 +1,3 @@ -discard """ - disabled: true -""" type PNode = ref TNode |