This commit is contained in:
Andreas Rumpf 2019-05-28 15:55:11 +02:00 • committed by GitHub
commit 9d8b4d6020
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View file

@ -1664,6 +1664,12 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
return isGeneric
result = typeRel(c, f.base, aa)
if result > isGeneric: result = isGeneric
elif c.isNoCall:
if doBind:
let concrete = concreteType(c, a, f)
if concrete == nil: return isNone
put(c, f, concrete)
result = isGeneric
else:
result = isNone
else: