diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim index 9680fe9ba4..1fdfea7c41 100644 --- a/compiler/vmgen.nim +++ b/compiler/vmgen.nim @@ -1596,11 +1596,20 @@ proc genTypeLit(c: PCtx; t: PType; dest: var TDest) = n.typ = t genLit(c, n, dest) +proc isEmptyBody(n: PNode): bool = + case n.kind + of nkStmtList: + for i in 0..", varargs, discardable.} = + ## foo bar + runnableExamples: discard +static: + let a = c_printf("abc\n")