2
0
Эх сурвалжийг харах

always keep Date.toString (close #2560)

Nicolas Cannasse 11 жил өмнө
parent
commit
0eee921a87
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      std/neko/_std/Date.hx

+ 2 - 2
std/neko/_std/Date.hx

@@ -62,7 +62,7 @@ import neko.Lib;
 		return Std.parseInt( new String(date_format(__t,untyped "%w".__s)) );
 	}
 
-	public function toString():String {
+	@:keep public function toString():String {
 		return new String(date_format(__t,null));
 	}
 
@@ -98,7 +98,7 @@ import neko.Lib;
 	static var int32_to_float = Lib.load("std","int32_to_float",1);
 	static var int32_add = Lib.load("std","int32_add",2);
 	static var int32_shl = Lib.load("std","int32_shl",2);
-	static function __string() : String { return untyped "Date".__s; }
+	@:keep static function __string() : String { return untyped "Date".__s; }
 
 }