Skip to content

Commit

Permalink
added GetTypeOfExpression support for lambda-expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
DedSec256 authored and auduchinok committed Oct 28, 2020
1 parent 1d369f1 commit 047855f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fsharp/CheckExpressions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5422,7 +5422,8 @@ and TcExprUndelayed cenv overallTy env tpenv (synExpr: SynExpr) =
CallExprHasTypeSink cenv.tcSink (m, env.NameEnv, overallTy, env.AccessRights)
TcConstExpr cenv overallTy env m tpenv synConst

| SynExpr.Lambda _ ->
| SynExpr.Lambda (_, _, _, _, m) ->
CallExprHasTypeSink cenv.tcSink (m, env.NameEnv, overallTy, env.AccessRights)
TcIteratedLambdas cenv true env overallTy Set.empty tpenv synExpr

| SynExpr.Match (spMatch, synInputExpr, synClauses, _m) ->
Expand Down

0 comments on commit 047855f

Please sign in to comment.