mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 11:54:11 +00:00
fixes #9532
This commit is contained in:
@@ -1527,7 +1527,7 @@ proc semTypeNode(c: PContext, n: PNode, prev: PType): PType =
|
||||
case s.magic
|
||||
of mArray: result = semArray(c, n, prev)
|
||||
of mOpenArray: result = semContainer(c, n, tyOpenArray, "openarray", prev)
|
||||
of mUncheckedArray: result = semContainer(c, n, tyUncheckedArray, "uncheckedarray", prev)
|
||||
of mUncheckedArray: result = semContainer(c, n, tyUncheckedArray, "UncheckedArray", prev)
|
||||
of mRange: result = semRange(c, n, prev)
|
||||
of mSet: result = semSet(c, n, prev)
|
||||
of mOrdinal: result = semOrdinal(c, n, prev)
|
||||
|
||||
@@ -528,7 +528,7 @@ proc typeToString(typ: PType, prefer: TPreferedDesc = preferName): string =
|
||||
result = "array[" & typeToString(t.sons[0]) & ", " &
|
||||
typeToString(t.sons[1]) & ']'
|
||||
of tyUncheckedArray:
|
||||
result = "uncheckedArray[" & typeToString(t.sons[0]) & ']'
|
||||
result = "UncheckedArray[" & typeToString(t.sons[0]) & ']'
|
||||
of tySequence:
|
||||
result = "seq[" & typeToString(t.sons[0]) & ']'
|
||||
of tyOpt:
|
||||
|
||||
@@ -100,7 +100,7 @@ proc mapTypeToAstX(cache: IdentCache; t: PType; info: TLineInfo;
|
||||
of tyEmpty: result = atomicType("empty", mNone)
|
||||
of tyUncheckedArray:
|
||||
result = newNodeIT(nkBracketExpr, if t.n.isNil: info else: t.n.info, t)
|
||||
result.add atomicType("uncheckedArray", mUncheckedArray)
|
||||
result.add atomicType("UncheckedArray", mUncheckedArray)
|
||||
result.add mapTypeToAst(t.sons[0], info)
|
||||
of tyArray:
|
||||
result = newNodeIT(nkBracketExpr, if t.n.isNil: info else: t.n.info, t)
|
||||
|
||||
Reference in New Issue
Block a user