Browse Source

[std] keep IMap where it was before for now

Simon Krajewski 8 năm trước cách đây
mục cha
commit
c463ccda5b
2 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 5 1
      std/Map.hx
  2. 1 5
      std/haxe/ds/Map.hx

+ 5 - 1
std/Map.hx

@@ -1 +1,5 @@
-typedef Map<K, V> = haxe.ds.Map<K, V>;
+typedef Map<K, V> = haxe.ds.Map<K, V>;
+
+@:dox(hide)
+@:deprecated
+typedef IMap<K, V> = haxe.Constraints.IMap<K, V>;

+ 1 - 5
std/haxe/ds/Map.hx

@@ -174,8 +174,4 @@ abstract Map<K,V>(IMap<K,V> ) {
 	@:from static inline function fromObjectMap<K:{ }, V>(map:ObjectMap<K,V>):Map<K,V> {
 		return cast map;
 	}
-}
-
-@:dox(hide)
-@:deprecated
-typedef IMap<K, V> = haxe.Constraints.IMap<K, V>;
+}