repr_v2 improvements (#14992)

* Support proc in arc repr

* Typo

* Improve repr for strings and chars
This commit is contained in:
Clyybber 2020-07-15 22:04:15 +02:00 • committed by GitHub
commit 813dd1b670
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 10 deletions

View file

@ -62,3 +62,9 @@ var c2 = new tuple[member: ref seq[string]]
c2.member = new seq[string]
c2.member[] = @["hello"]
echo c2.repr
proc p2 =
echo "hey"
discard repr p2