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,
|
tyUInt64,
|
||||||
tyOptAsRef, tyUnused1, tyUnused2,
|
tyOptAsRef, tyUnused1, tyUnused2,
|
||||||
tyVarargsHidden,
|
tyVarargsHidden,
|
||||||
tyUnusedHidden,
|
tyUncheckedArray,
|
||||||
tyProxyHidden,
|
tyProxyHidden,
|
||||||
tyBuiltInTypeClassHidden,
|
tyBuiltInTypeClassHidden,
|
||||||
tyUserTypeClassHidden,
|
tyUserTypeClassHidden,
|
||||||
|
|
|
||||||
|
|
@ -278,6 +278,8 @@ when not defined(useNimRtl):
|
||||||
of tyProc, tyPointer:
|
of tyProc, tyPointer:
|
||||||
if cast[PPointer](p)[] == nil: add result, "nil"
|
if cast[PPointer](p)[] == nil: add result, "nil"
|
||||||
else: add result, reprPointer(cast[PPointer](p)[])
|
else: add result, reprPointer(cast[PPointer](p)[])
|
||||||
|
of tyUncheckedArray:
|
||||||
|
add result, "[...]"
|
||||||
else:
|
else:
|
||||||
add result, "(invalid data!)"
|
add result, "(invalid data!)"
|
||||||
inc(cl.recdepth)
|
inc(cl.recdepth)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue