Skip to content

Commit ee8a741

Browse files
DedSec256auduchinok
authored andcommitted
Add GetTypeOfExpression support for long ident expressions (dotnet#6)
1 parent 6e2601c commit ee8a741

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/fsharp/TypeChecker.fs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5833,7 +5833,9 @@ and TcExprThen cenv overallTy env tpenv synExpr delayed =
58335833
// Check to see if pattern translation decided to use an alternative identifier.
58345834
match altNameRefCellOpt with
58355835
| Some {contents = Decided altId} -> TcExprThen cenv overallTy env tpenv (SynExpr.LongIdent (isOpt, LongIdentWithDots([altId], []), None, mLongId)) delayed
5836-
| _ -> TcLongIdentThen cenv overallTy env tpenv longId delayed
5836+
| _ ->
5837+
CallExprHasTypeSink cenv.tcSink (mLongId, env.NameEnv, overallTy, env.AccessRights)
5838+
TcLongIdentThen cenv overallTy env tpenv longId delayed
58375839

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

0 commit comments

Comments
 (0)