Add stat instance method to File.

This commit is contained in:
Bob Nystrom
2016-02-21 10:18:45 -08:00
parent 3101d9c499
commit b331915259
7 changed files with 88 additions and 43 deletions
+6
View File
@@ -0,0 +1,6 @@
import "io" for File
var file = File.open("test/io/file/file.txt")
file.close()
file.stat // expect runtime error: File is not open.