fix static[Slice[T]] as argument issue (#15842)

This commit is contained in:
cooldome 2020-11-04 18:52:53 +00:00 • committed by GitHub
commit 4c19c5dfae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -1079,7 +1079,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
return typeRel(c, f, lastSon(aOrig), flags)
if a.kind == tyGenericInst and
skipTypes(f, {tyVar, tyLent, tySink}).kind notin {
skipTypes(f, {tyStatic, tyVar, tyLent, tySink}).kind notin {
tyGenericBody, tyGenericInvocation,
tyGenericInst, tyGenericParam} + tyTypeClasses:
return typeRel(c, f, lastSon(a), flags)