alternative fix for #4884; fixes tlateboundstatic

This commit is contained in:
Zahary Karadjov
2017-01-11 00:44:33 +02:00
parent c86988491f
commit 28005cf02d

View File

@@ -1359,7 +1359,7 @@ proc paramTypesMatchAux(m: var TCandidate, f, argType: PType,
if argType.kind == tyStatic:
if m.callee.kind == tyGenericBody and
argType.len == 0 and
argType.n == nil and
tfGenericTypeParam notin argType.flags:
return newNodeIT(nkType, argOrig.info, makeTypeFromExpr(c, arg))
else: