From 803ca09efb193912102f58be3bf908445eff0075 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Fri, 9 Jan 2026 18:10:41 +0800 Subject: [PATCH] Apply suggestions from code review --- compiler/semstmts.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 1cf24c9beb..618100f870 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -1846,7 +1846,7 @@ proc typeSectionFinalPass(c: PContext, n: PNode) = if baseType.kind in {tyObject, tyTuple} and not baseType.n.isNil: checkForMetaFields(c, baseType.n, hasError) - if s.typ.kind in {tySet, tyArray, tySequence} and s.typ.elementType.kind == tyNone: + if s.typ.kind in {tySet, tyArray, tySequence, tyUncheckedArray} and s.typ.elementType.kind == tyNone: # magic generics are not filled but tyNone is added to its elements by default, # we lift them to tyBuiltInTypeClass here s.typ = newTypeS(tyBuiltInTypeClass, c,