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,