mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-15 03:19:22 +00:00
Apply suggestions from code review
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user