fixed merge conflict
This commit is contained in:
commit
12996c08a1
30 changed files with 879 additions and 332 deletions
|
|
@ -158,7 +158,7 @@ proc commonType*(x, y: PType): PType =
|
|||
a = a.lastSon.skipTypes({tyGenericInst})
|
||||
b = b.lastSon.skipTypes({tyGenericInst})
|
||||
if a.kind == tyObject and b.kind == tyObject:
|
||||
result = commonSuperclass(a, b)
|
||||
result = commonSuperclass(a, b, k)
|
||||
# this will trigger an error later:
|
||||
if result.isNil or result == a: return x
|
||||
if result == b: return y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue