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

Commit64f9a90

Browse files
committed
Change error code
1 parent3b124ba commit64f9a90

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎src/fsharp/CompileOps.fs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ let GetDiagnosticNumber(err:PhasedDiagnostic) =
243243
(* DO NOT CHANGE THESE NUMBERS*)
244244
| ErrorFromAddingTypeEquation_->1
245245
| FunctionExpected_->2
246+
| NotAFunction(_,_,true,_,_)->3217
246247
| NotAFunction_->3
247248
| FieldNotMutable_->5
248249
| Recursion_->6

‎src/fsharp/FSComp.txt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ buildUnexpectedTypeArgs,"The non-generic type '%s' does not expect any type argu
2424
returnUsedInsteadOfReturnBang,"Consider using 'return!' instead of 'return'."
2525
yieldUsedInsteadOfYieldBang,"Consider using 'yield!' instead of 'yield'."
2626
tupleRequiredInAbstractMethod,"\nA tuple type is required for one or more arguments. Consider wrapping the given arguments in additional parentheses or review the definition of the interface."
27-
notAFunction,"This value is not a function and cannot be applied."
28-
notAFunctionButMaybeIndexer,"This value is not a function and cannot be applied. Did you intend to call obj.[index] instead of obj[index]?"
29-
notAFunctionButMaybeDeclaration,"This value is not a function and cannot be applied. Did you forget to terminate a declaration?"
3027
203,buildInvalidWarningNumber,"Invalid warning number '%s'"
3128
204,buildInvalidVersionString,"Invalid version string '%s'"
3229
205,buildInvalidVersionFile,"Invalid version file '%s'"
@@ -1413,3 +1410,6 @@ keywordDescriptionUntypedQuotation,"Delimits a untyped code quotation."
14131410
3216,itemNotFoundDuringDynamicCodeGen,"%s '%s' not found in assembly '%s'. A possible cause may be a version incompatibility. You may need to explicitly reference the correct version of this assembly to allow all referenced components to use the correct version."
14141411
3216,itemNotFoundInTypeDuringDynamicCodeGen,"%s '%s' not found in type '%s' from assembly '%s'. A possible cause may be a version incompatibility. You may need to explicitly reference the correct version of this assembly to allow all referenced components to use the correct version."
14151412
descriptionWordIs,"is"
1413+
notAFunction,"This value is not a function and cannot be applied."
1414+
3217,notAFunctionButMaybeIndexer,"This value is not a function and cannot be applied. Did you intend to call obj.[index] instead of obj[index]?"
1415+
notAFunctionButMaybeDeclaration,"This value is not a function and cannot be applied. Did you forget to terminate a declaration?"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp