Skip to content

Commit

Permalink
Add GetTypeOfExpression support for long ident expressions (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
DedSec256 authored and auduchinok committed Mar 18, 2021
1 parent d4782bf commit dedc9fb
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 @@ -5356,7 +5356,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 dedc9fb

Please sign in to comment.