summary refs log tree commit diff stats
path: root/tests/arc
diff options
context:
space:
mode:
authorDerek 呆 <116649+derekdai@users.noreply.github.com>2022-11-12 02:31:59 +0800
committerGitHub <noreply@github.com>2022-11-11 19:31:59 +0100
commit6007a40eac60b52b3c2edb4ed6e8399c96c0f939 (patch)
treed06d3d230ee72d2d85da5d88a79c1a984dacabf1 /tests/arc
parent993630e40fbaa7d8aeb39a796d4ba283fdbb8bff (diff)
downloadNim-6007a40eac60b52b3c2edb4ed6e8399c96c0f939.tar.gz
support `UncheckedArray[T]` in repr_v2.nim (#20816)
Diffstat (limited to 'tests/arc')
-rw-r--r--tests/arc/trepr.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/arc/trepr.nim b/tests/arc/trepr.nim
index 50d433208..abf28330a 100644
--- a/tests/arc/trepr.nim
+++ b/tests/arc/trepr.nim
@@ -9,6 +9,7 @@ nil
 2
 Obj(member: ref @["hello"])
 ref (member: ref @["hello"])
+ObjUa(v: 0, a: [...])
 '''
 """
 
@@ -87,3 +88,10 @@ macro extract(): untyped =
   test(parseExpr("discard"))
   
 extract()
+
+type
+  ObjUa = ref object
+    v: int
+    a: UncheckedArray[char]
+
+echo ObjUa().repr