mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
* fix #15148 Co-authored-by: alaviss <leorize+oss@disroot.org>
This commit is contained in:
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()
|
||||
Reference in New Issue
Block a user