Fix repr() for UncheckedArray (#9385)
This commit is contained in:
parent
89ba0f8592
commit
72cd3b7914
2 changed files with 3 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ type
|
|||
tyUInt64,
|
||||
tyOptAsRef, tyUnused1, tyUnused2,
|
||||
tyVarargsHidden,
|
||||
tyUnusedHidden,
|
||||
tyUncheckedArray,
|
||||
tyProxyHidden,
|
||||
tyBuiltInTypeClassHidden,
|
||||
tyUserTypeClassHidden,
|
||||
|
|
|
|||
|
|
@ -278,6 +278,8 @@ when not defined(useNimRtl):
|
|||
of tyProc, tyPointer:
|
||||
if cast[PPointer](p)[] == nil: add result, "nil"
|
||||
else: add result, reprPointer(cast[PPointer](p)[])
|
||||
of tyUncheckedArray:
|
||||
add result, "[...]"
|
||||
else:
|
||||
add result, "(invalid data!)"
|
||||
inc(cl.recdepth)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue