提交 95ba9c82 编写于 作者: I Isaac Abraham 提交者: latkin

Fix false escaping type parameter check error

closes https://github.com/Microsoft/visualfsharp/pull/613
fixes https://github.com/Microsoft/visualfsharp/issues/583

commit 14de02b29894ec8757757fdbd86a5476fa5e3f39
Author: latkin <latkin@microsoft.com>
Date:   Wed Sep 16 15:36:05 2015 -0700

    Add test case

commit 02dd52e857d3b9754f51f45921a24f1c32729328
Author: Isaac Abraham <isaac.abraham@gmail.com>
Date:   Fri Sep 4 11:40:50 2015 +0200

    Fixes https://github.com/Microsoft/visualfsharp/issues/583.
上级 499b2c3e
......@@ -632,7 +632,8 @@ and CheckExprInContext (cenv:cenv) (env:env) expr (context:ByrefCallContext) =
let ty = tryMkForallTy tps rty in
CheckLambdas None cenv env false topValInfo false expr m ty
| Expr.TyChoose(_,e1,_) ->
| Expr.TyChoose(tps,e1,_) ->
let env = BindTypars cenv.g env tps
CheckExpr cenv env e1
| Expr.Match(_,_,dtree,targets,m,ty) ->
......
@if "%_echo%"=="" echo off
setlocal
REM Configure the sample, i.e. where to find the F# compiler and C# compiler.
REM Configure the sample, i.e. where to find the F# compiler and C# compiler.
call %~d0%~p0..\..\..\config.bat
"%FSC%" %fsc_flags% --target:exe -o:pos22.exe pos22.fs
@if ERRORLEVEL 1 goto Error
"%PEVERIFY%" pos22.exe
@if ERRORLEVEL 1 goto Error
pos22.exe
@if ERRORLEVEL 1 goto Error
call ..\..\single-neg-test.bat neg93
@if ERRORLEVEL 1 goto Error
......
// https://github.com/Microsoft/visualfsharp/issues/583
let rec recValNeverUsedAtRuntime = recFuncIgnoresFirstArg (fun _ -> recValNeverUsedAtRuntime) 1
and recFuncIgnoresFirstArg g v = v
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册