Skip to content

Commit 50d1d80

Browse files
committed
1 parent 2a81f50 commit 50d1d80

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/fsharp/PostInferenceChecks.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,8 @@ and CheckExprInContext (cenv:cenv) (env:env) expr (context:ByrefCallContext) =
600600
let ty = tryMkForallTy tps rty in
601601
CheckLambdas None cenv env false topValInfo false expr m ty
602602

603-
| Expr.TyChoose(_,e1,_) ->
603+
| Expr.TyChoose(tps,e1,_) ->
604+
let env = BindTypars cenv.g env tps
604605
CheckExpr cenv env e1
605606

606607
| Expr.Match(_,_,dtree,targets,m,ty) ->

tests/service/ExprTests.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ let testILCall2 = System.Console.WriteLine(176)
169169
170170
// Test recursive values in a module
171171
let rec recValNeverUsedAtRuntime = recFuncIgnoresFirstArg (fun _ -> recValNeverUsedAtRuntime) 1
172-
and recFuncIgnoresFirstArg (g:int->int) v = v
172+
and recFuncIgnoresFirstArg g v = v
173173
174174
let testFun4() =
175175
// Test recursive values in expression position
176176
let rec recValNeverUsedAtRuntime = recFuncIgnoresFirstArg (fun _ -> recValNeverUsedAtRuntime) 1
177-
and recFuncIgnoresFirstArg (g:int->int) v = v
177+
and recFuncIgnoresFirstArg g v = v
178178
179179
recValNeverUsedAtRuntime
180180

0 commit comments

Comments
 (0)