@@ -429,7 +429,7 @@ module FSharpExprConvert =
429429 let contf2 =
430430 match laterArgs with
431431 | [] -> contf
432- | _ -> ( fun subCallR -> ( subCallR, laterArgs) ||> List.fold ( fun fR arg -> E.Application ( Mk2 cenv arg fR,[],[ ConvExpr cenv env arg])))
432+ | _ -> ( fun subCallR -> ( subCallR, laterArgs) ||> List.fold ( fun fR arg -> E.Application ( Mk2 cenv arg fR,[],[ ConvExpr cenv env arg])) |> contf )
433433
434434 if isMember then
435435 let callArgs = ( objArgs:: untupledCurriedArgs) |> List.concat
@@ -466,13 +466,13 @@ module FSharpExprConvert =
466466 | Expr.Sequential _ ->
467467 ConvExprPrimLinear cenv env expr ( fun e -> e)
468468
469- | Expr.Val( vref,_ vFlags, m) ->
470- ConvValRef cenv env m vref
471-
472- | ModuleValueOrMemberUse cenv.g ( vref, vFlags,_ f,_ fty, tyargs, curriedArgs) when ( nonNil tyargs || nonNil curriedArgs) && vref.IsMemberOrModuleBinding ->
469+ | ModuleValueOrMemberUse cenv.g ( vref, vFlags,_ f,_ fty, tyargs, curriedArgs) when (* (nonNil tyargs || nonNil curriedArgs) && *) vref.IsMemberOrModuleBinding ->
473470 // Process applications of top-level values in a tail-recursive way
474471 ConvModuleValueOrMemberUseLinear cenv env ( expr, vref, vFlags, tyargs, curriedArgs) ( fun e -> e)
475472
473+ | Expr.Val( vref,_ vFlags, m) ->
474+ ConvValRef cenv env m vref
475+
476476 // Simple applications
477477 | Expr.App( f,_ fty, tyargs, args,_ m) ->
478478 E.Application ( ConvExpr cenv env f, ConvTypes cenv tyargs, ConvExprs cenv env args)
0 commit comments