mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-15 16:18:04 +01:00
10 lines
187 B
Plaintext
10 lines
187 B
Plaintext
import "io" for File
|
|
|
|
System.print(Fiber.new {
|
|
File.create("file.temp") {|file|
|
|
file.writeBytes("", -1)
|
|
}
|
|
}.try()) // expect: Offset cannot be negative.
|
|
|
|
File.delete("file.temp")
|