diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2018-10-16 14:27:42 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-16 14:27:42 +0200 |
commit | 72cd3b7914ba3390ba1f87683151c84a85dfbb85 (patch) | |
tree | 79ded9d325dbe7050c5cb586f9511ffc4f60a992 /lib/system | |
parent | 89ba0f8592e57332553ef68cf625e335c152a302 (diff) | |
download | Nim-72cd3b7914ba3390ba1f87683151c84a85dfbb85.tar.gz |
Fix repr() for UncheckedArray (#9385)
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/hti.nim | 2 | ||||
-rw-r--r-- | lib/system/repr.nim | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/system/hti.nim b/lib/system/hti.nim index bffe81bc8..6e6f109de 100644 --- a/lib/system/hti.nim +++ b/lib/system/hti.nim @@ -58,7 +58,7 @@ type tyUInt64, tyOptAsRef, tyUnused1, tyUnused2, tyVarargsHidden, - tyUnusedHidden, + tyUncheckedArray, tyProxyHidden, tyBuiltInTypeClassHidden, tyUserTypeClassHidden, diff --git a/lib/system/repr.nim b/lib/system/repr.nim index 85701c28f..ce7c349bd 100644 --- a/lib/system/repr.nim +++ b/lib/system/repr.nim @@ -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) |