From 0d83952a4fded02907cf47f76f51e2b4c0ffcf67 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Fri, 13 Feb 2026 19:55:23 +0800 Subject: [PATCH] Update compiler/semtypinst.nim Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- compiler/semtypinst.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index c7ff437e7c..5f846c80ac 100644 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -572,7 +572,7 @@ proc eraseTupleVoidFields*(t: PType) = # found first void field, compact from here var pos = i for j in i+1..= t.n.len or t.n[j].kind != nkRecList): + if t[j].kind != tyVoid and j < t.n.len and t.n[j].kind != nkRecList: t.n[pos] = t.n[j] t[pos] = t[j] if t.n[pos].kind == nkSym: