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 Oct 14, 2020
1 parent ab8fe81 commit b592891
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 @@ -5883,7 +5883,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 b592891

Please sign in to comment.