mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 02:42:05 +00:00
Fix repr() for UncheckedArray (#9385)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user