Fix repr() for UncheckedArray (#9385)

This commit is contained in:
LemonBoy
2018-10-16 14:27:42 +02:00
committed by Andreas Rumpf
parent 89ba0f8592
commit 72cd3b7914
2 changed files with 3 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ type
tyUInt64,
tyOptAsRef, tyUnused1, tyUnused2,
tyVarargsHidden,
tyUnusedHidden,
tyUncheckedArray,
tyProxyHidden,
tyBuiltInTypeClassHidden,
tyUserTypeClassHidden,

View File

@@ -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)