Add Stdin.readByte().

This commit is contained in:
Bob Nystrom
2016-05-20 11:50:14 -07:00
parent 872cfdcd42
commit 500dd41ccd
7 changed files with 140 additions and 55 deletions
+9
View File
@@ -0,0 +1,9 @@
import "io" for Stdin
Stdin.readLine() // stdin: one line
var error = Fiber.new {
Stdin.readLine()
}.try()
System.print(error) // expect: Stdin was closed.