Kaynağa Gözat

Use K:Int instead of just Int for Map.toIntMap so concrete IntMap class is used instead of IMap<Int,V> (see #3777)

Dan Korostelev 10 yıl önce
ebeveyn
işleme
3fd4600561
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      std/Map.hx

+ 1 - 1
std/Map.hx

@@ -138,7 +138,7 @@ abstract Map<K,V>(IMap<K,V> ) {
 		return new StringMap<V>();
 	}
 
-	@:to static inline function toIntMap<V>(t:IMap<Int,V>):IntMap<V> {
+	@:to static inline function toIntMap<K:Int,V>(t:IMap<K,V>):IntMap<V> {
 		return new IntMap<V>();
 	}