Browse Source

change NoData internal type to Dynamic (#9008)

Aleksandr Kuzmenko 5 năm trước cách đây
mục cha
commit
842833a98d
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      std/haxe/NoData.hx

+ 2 - 3
std/haxe/NoData.hx

@@ -4,7 +4,6 @@ package haxe;
 	Data type used to indicate the absence of a value, especially in types with
 	type parameters.
 **/
-abstract NoData(Int) {
-	public inline function new()
-		this = 0;
+enum abstract NoData(Null<Dynamic>) from Dynamic {
+	var NoData = null;
 }