mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
fixes #2
This commit is contained in:
@@ -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])
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
discard """
|
||||
disabled: true
|
||||
"""
|
||||
|
||||
type
|
||||
PNode = ref TNode
|
||||
|
||||
Reference in New Issue
Block a user