@@ -944,7 +944,7 @@ let operators (com: ICompiler) (ctx: Context) r t (i: CallInfo) (thisArg: Expr o
944944 | " ToString" , _ -> toString com ctx r args |> Some
945945 | " CreateSequence" , [ xs ] -> toSeq com t xs |> Some
946946 | ( " CreateDictionary" | " CreateReadOnlyDictionary" ), [ arg ] ->
947- Helper.LibCall( com, " HashMap" , " new_from_array " , t, [ toArray com t arg ])
947+ Helper.LibCall( com, " HashMap" , " new_from_tup_array " , t, [ toArray com t arg ])
948948 |> Some
949949 | " CreateSet" , _ -> ( genArg com ctx r 0 i.GenericArgs) |> makeSet com ctx r t args |> Some
950950 // Ranges
@@ -1571,7 +1571,6 @@ let formattableString
15711571
15721572let seqModule ( com : ICompiler ) ( ctx : Context ) r ( t : Type ) ( i : CallInfo ) ( thisArg : Expr option ) ( args : Expr list ) =
15731573 match i.CompiledName, args with
1574- | " Cast" , [ MaybeCasted( arg) ] -> Some arg // Erase
15751574 // | "ToArray", [arg] ->
15761575 // Helper.LibCall(com, "Array", "ofSeq", t, args, i.SignatureArgTypes, ?loc=r) |> Some
15771576 | " ToList" , [ arg ] ->
@@ -2300,7 +2299,7 @@ let dictionaries (com: ICompiler) (ctx: Context) r t (i: CallInfo) (thisArg: Exp
23002299 | [ ExprType( Number _) ] -> Helper.LibCall( com, " HashMap" , " new_with_capacity" , t, args) |> Some
23012300 | [ ExprType( IEnumerable) ] ->
23022301 let a = Helper.LibCall( com, " Seq" , " toArray" , t, args)
2303- Helper.LibCall( com, " HashMap" , " new_from_array " , t, [ a ]) |> Some
2302+ Helper.LibCall( com, " HashMap" , " new_from_kvp_array " , t, [ a ]) |> Some
23042303 // match i.SignatureArgTypes, args with
23052304 // | ([]|[Number _]), _ ->
23062305 // makeDictionary com ctx r t (makeArray Any []) |> Some
0 commit comments