Skip to content

Commit

Permalink
fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Nov 2, 2011
1 parent e592b5f commit 75aaab5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion compiler/sigmatch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
3 changes: 0 additions & 3 deletions tests/accept/compile/trectuple.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
discard """
disabled: true
"""

type
PNode = ref TNode
Expand Down

0 comments on commit 75aaab5

Please sign in to comment.