提交 36c62897 编写于 作者: S Steffen Forkmann

fix test

上级 dc8a26e6
......@@ -8241,7 +8241,9 @@ and Propagate cenv overallTy env tpenv (expr: ApplicableExpr) exprty delayed =
| _ -> false
error (NotAFunction(denv,overallTy,flag,mExpr,mArg))
| _ ->
| _ ->
// 'delayed' is about to be dropped on the floor, first do rudimentary checking to get name resolutions in its body
RecordNameAndTypeResolutions_IdeallyWithoutHavingOtherEffects_Delayed cenv env tpenv delayed
error (NotAFunction(denv,overallTy,false,mExpr,mArg))
propagate delayed expr.Range exprty
......
......@@ -263,7 +263,7 @@ let x = 3
let y = (*start*)x(*end*) 4
let arr = [| 1; 2; 3 |]
""",
expectedMessage = "This value is not a function and cannot be applied. But the given value has an indexer. Did you intend to call obj.[index] instead of obj[index]?")
expectedMessage = "This value is not a function and cannot be applied.")
[<Test>]
member public this.Multiline_Bug5449() =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册