Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
3fd4600561
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>();
 	}