* fix #15148 Co-authored-by: alaviss <leorize+oss@disroot.org>
This commit is contained in:
parent
6f482ab934
commit
eee3b189ff
2 changed files with 23 additions and 4 deletions
12
tests/async/t15148.nim
Normal file
12
tests/async/t15148.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import asyncdispatch, asyncfile, os
|
||||
|
||||
const Filename = "t15148.txt"
|
||||
|
||||
proc saveEmpty() {.async.} =
|
||||
let
|
||||
text = ""
|
||||
file = openAsync(Filename, fmWrite)
|
||||
await file.write(text)
|
||||
file.close()
|
||||
|
||||
waitFor saveEmpty()
|
||||
Loading…
Add table
Add a link
Reference in a new issue