Skip to content

Commit 0cc0cf7

Browse files
committed
Core: fix selfCheck
1 parent 0480c3f commit 0cc0cf7

File tree

1 file changed

+4
-4
lines changed
  • src/FSharpLint.Core/Framework

1 file changed

+4
-4
lines changed

src/FSharpLint.Core/Framework/Ast.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ module Ast =
4747
[<TailCall>]
4848
let rec private flattenFuncExpr flattened exprToFlatten =
4949
match exprToFlatten with
50-
| SynExpr.App(_, _, x, y, _) ->
51-
match x with
50+
| SynExpr.App(_, _, funcExpr, argExpr, _) ->
51+
match funcExpr with
5252
| SynExpr.App(_, true, SynExpr.LongIdent(_, SynLongIdent([op], _, _), _, _), rhs, _) as app ->
53-
let lhs = y
53+
let lhs = argExpr
5454

5555
match op.idText with
5656
| "op_PipeRight" | "op_PipeRight2" | "op_PipeRight3" ->
@@ -59,7 +59,7 @@ module Ast =
5959
flattenFuncExpr (lhs::flattened) rhs
6060
| _ -> flattenFuncExpr (lhs::flattened) app
6161
| expression ->
62-
let leftExpr, rightExpr = (expression, y)
62+
let leftExpr, rightExpr = (expression, argExpr)
6363
flattenFuncExpr (rightExpr::flattened) leftExpr
6464
| expr -> expr::flattened
6565

0 commit comments

Comments
 (0)