mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-14 23:33:28 +00:00
StringStreams no longer errors when intialized with literals on arc/orc (#19708)
(cherry picked from commit 26acc97864)
This commit is contained in:
@@ -74,3 +74,5 @@ block:
|
||||
doAssert(ss.peekLine(str))
|
||||
doAssert(str == "uick brown fox jumped over the lazy dog.")
|
||||
doAssert(ss.getPosition == 5) # haven't moved
|
||||
ss.setPosition(0) # Ensure we dont error with writing over literals on arc/orc #19707
|
||||
ss.write("hello")
|
||||
|
||||
Reference in New Issue
Block a user