Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36c6289

Browse files
committed
fix test
1 parentdc8a26e commit36c6289

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎src/fsharp/TypeChecker.fs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8241,7 +8241,9 @@ and Propagate cenv overallTy env tpenv (expr: ApplicableExpr) exprty delayed =
82418241
| _ -> false
82428242

82438243
error (NotAFunction(denv,overallTy,flag,mExpr,mArg))
8244-
| _ ->
8244+
| _ ->
8245+
// 'delayed' is about to be dropped on the floor, first do rudimentary checking to get name resolutions in its body
8246+
RecordNameAndTypeResolutions_IdeallyWithoutHavingOtherEffects_Delayed cenv env tpenv delayed
82458247
error (NotAFunction(denv,overallTy,false,mExpr,mArg))
82468248

82478249
propagate delayed expr.Range exprty

‎vsintegration/tests/unittests/DocumentDiagnosticAnalyzerTests.fs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ let x = 3
263263
let y = (*start*)x(*end*) 4
264264
let arr = [| 1; 2; 3 |]
265265
""",
266-
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]?")
266+
expectedMessage="This value is not a function and cannot be applied.")
267267

268268
[<Test>]
269269
memberpublicthis.Multiline_Bug5449()=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp