Skip to content

Commit

Permalink
suggest using .[] insteaed of [] if [] are actually present only
Browse files Browse the repository at this point in the history
  • Loading branch information
vasily-kirichenko committed May 31, 2017
1 parent 00217e7 commit 12deda4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fsharp/TypeChecker.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8220,9 +8220,9 @@ and Propagate cenv overallTy env tpenv (expr: ApplicableExpr) exprty delayed =
propagate delayedList' mExprAndArg resultTy
| None ->
let mArg = arg.Range
match arg with
match arg with
| SynExpr.CompExpr _ -> ()
| _ ->
| SynExpr.ArrayOrListOfSeqExpr _ ->
// 'delayed' is about to be dropped on the floor, first do rudimentary checking to get name resolutions in its body
RecordNameAndTypeResolutions_IdeallyWithoutHavingOtherEffects_Delayed cenv env tpenv delayed

Expand All @@ -8241,6 +8241,8 @@ and Propagate cenv overallTy env tpenv (expr: ApplicableExpr) exprty delayed =
| _ -> false

error (NotAFunction(denv,overallTy,flag,mExpr,mArg))
| _ ->
error (NotAFunction(denv,overallTy,false,mExpr,mArg))

propagate delayed expr.Range exprty

Expand Down

0 comments on commit 12deda4

Please sign in to comment.