repr on seq now outputs @[...] (#11224)

This commit is contained in:
Ico Doornekamp 2019-05-10 16:33:43 +02:00 • committed by Andreas Rumpf
commit a170719d1a

View file

@ -181,7 +181,7 @@ when not defined(useNimRtl):
add result, "[]" add result, "[]"
return return
result.add(reprPointer(p)) result.add(reprPointer(p))
result.add '[' result.add "@["
var bs = typ.base.size var bs = typ.base.size
for i in 0..cast[PGenericSeq](p).len-1: for i in 0..cast[PGenericSeq](p).len-1:
if i > 0: add result, ", " if i > 0: add result, ", "