瀏覽代碼

[lua] add override for FileOutput.close

Justin Donaldson 9 年之前
父節點
當前提交
5784d5e773
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      std/lua/_std/sys/io/FileOutput.hx

+ 4 - 0
std/lua/_std/sys/io/FileOutput.hx

@@ -47,4 +47,8 @@ class FileOutput extends haxe.io.Output {
 		f.write(String.fromCharCode(c));
 	}
 
+	override public function close() {
+		f.close();
+	}
+
 }