Skip to content

Commit

Permalink
Add GetTypeOfExpression support for long ident expressions (dotnet#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
DedSec256 authored and auduchinok committed Jul 27, 2020
1 parent 6e2601c commit ee8a741
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fsharp/TypeChecker.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5833,7 +5833,9 @@ and TcExprThen cenv overallTy env tpenv synExpr delayed =
// Check to see if pattern translation decided to use an alternative identifier.
match altNameRefCellOpt with
| Some {contents = Decided altId} -> TcExprThen cenv overallTy env tpenv (SynExpr.LongIdent (isOpt, LongIdentWithDots([altId], []), None, mLongId)) delayed
| _ -> TcLongIdentThen cenv overallTy env tpenv longId delayed
| _ ->
CallExprHasTypeSink cenv.tcSink (mLongId, env.NameEnv, overallTy, env.AccessRights)
TcLongIdentThen cenv overallTy env tpenv longId delayed

// f x
| SynExpr.App (hpa, _, func, arg, mFuncAndArg) ->
Expand Down

0 comments on commit ee8a741

Please sign in to comment.