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 14, 2020
1 parent 52f0941 commit ab8fe81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fsharp/TypeChecker.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5973,7 +5973,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 ab8fe81

Please sign in to comment.