fix overloading case with generic alias (#15116)
* fix overloading case with generic alias * revert reorganization of tests
This commit is contained in:
parent
604f7461d7
commit
32c6146200
2 changed files with 106 additions and 1 deletions
|
|
@ -1476,7 +1476,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
|
|||
|
||||
of tyGenericBody:
|
||||
considerPreviousT:
|
||||
if a == f or a.kind == tyGenericInst and a[0] == f:
|
||||
if a == f or a.kind == tyGenericInst and a.skipGenericAlias[0] == f:
|
||||
bindingRet isGeneric
|
||||
let ff = lastSon(f)
|
||||
if ff != nil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue