Преглед изворни кода

[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();
+	}
+
 }