mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 23:54:19 +00:00
Make repr(HSlice) always available (#22332)
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
(cherry picked from commit d37b620757)
This commit is contained in:
@@ -40,7 +40,7 @@ template main() =
|
||||
#[
|
||||
BUG:
|
||||
--gc:arc returns `"abc"`
|
||||
regular gc returns with address, e.g. 0x1068aae60"abc", but only
|
||||
regular gc returns with address, e.g. 0x1068aae60"abc", but only
|
||||
for c,cpp backends (not js, vm)
|
||||
]#
|
||||
block:
|
||||
@@ -293,7 +293,7 @@ func fn2(): int =
|
||||
|
||||
*a: b
|
||||
do: c
|
||||
|
||||
|
||||
doAssert a == """foo(a, b, (c, d)):
|
||||
e
|
||||
f
|
||||
@@ -322,5 +322,7 @@ else:
|
||||
do:
|
||||
c"""
|
||||
|
||||
doAssert repr(1..2) == "1 .. 2"
|
||||
|
||||
static: main()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user