Fix nimsuggest not suggesting fields in when theres static parameters (#21189)
Don't check against empty arguments Add test case
This commit is contained in:
parent
9efa56a8bb
commit
3d5dbf8f96
2 changed files with 19 additions and 1 deletions
|
|
@ -2055,7 +2055,7 @@ proc paramTypesMatchAux(m: var TCandidate, f, a: PType,
|
|||
a.n == nil and
|
||||
tfGenericTypeParam notin a.flags:
|
||||
return newNodeIT(nkType, argOrig.info, makeTypeFromExpr(c, arg))
|
||||
else:
|
||||
elif arg.kind != nkEmpty:
|
||||
var evaluated = c.semTryConstExpr(c, arg)
|
||||
if evaluated != nil:
|
||||
# Don't build the type in-place because `evaluated` and `arg` may point
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue