Skip to content

Commit fceaceb

Browse files
committed
adjust fix for top level funtion expressions
1 parent bb9fb78 commit fceaceb

File tree

2 files changed

+112
-92
lines changed

2 files changed

+112
-92
lines changed

src/fsharp/vs/Exprs.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)