Fix string stream crashing when created on nimscript due to last fix (#19717)
This commit is contained in:
parent
ef7d7f2459
commit
dc4cc2dca5
2 changed files with 5 additions and 1 deletions
|
|
@ -76,3 +76,7 @@ block:
|
|||
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")
|
||||
|
||||
static: # Ensure streams it doesnt break with nimscript on arc/orc #19716
|
||||
let s = newStringStream("a")
|
||||
discard s.data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue