diff --git a/compiler/semcall.nim b/compiler/semcall.nim index a80b58be7b..4b645ac256 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -830,6 +830,21 @@ proc inheritBindings(c: PContext, x: var TCandidate, expectedType: PType) = for i in 0 ..< flatUnbound.len(): x.bindings.put(flatUnbound[i], flatBound[i]) +proc compactVoidArgs(n: PNode): PNode = + # deletes void args from the argument list, which are created by `setSon` + var hasNil = false + for i in 0..