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 7, 2021
1 parent f1a491b commit 51c8485
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fsharp/CheckExpressions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5381,7 +5381,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 = SynSimplePatAlternativeIdInfo.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 51c8485

Please sign in to comment.