support UncheckedArray[T] in repr_v2.nim (#20816)
This commit is contained in:
parent
993630e40f
commit
6007a40eac
2 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue