mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
fix static[Slice[T]] as argument issue (#15842)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user