fix overloading case with generic alias (#15116)

* fix overloading case with generic alias

* revert reorganization of tests
This commit is contained in:
jcosborn 2020-07-30 08:34:11 -05:00 • committed by GitHub
commit 32c6146200
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 106 additions and 1 deletions

View file

@ -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: