Skip to content

Commit 6d16085

Browse files
authored
Remove note about indexer in FS0003 (#28132)
This is N/A as of F# 6
1 parent c181698 commit 6d16085

File tree

1 file changed

+1
-5
lines changed
  • docs/fsharp/language-reference/compiler-messages

1 file changed

+1
-5
lines changed

docs/fsharp/language-reference/compiler-messages/fs0003.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,4 @@ In the previous snippet, the FS0003 error is shown because the value `v` is not
2222
error FS0003: This value is not a function and cannot be applied.
2323
```
2424

25-
To solve this message, you must determine which of these two scenarios is the root cause.
26-
27-
- If an indexer was intended to be used, make sure the syntax is correct as suggested by the error message. In this case, the correct usage would be `listOfInts.[1]` instead of `listOfInts[1]`
28-
29-
- If a function was intended to be called, make sure the value you're calling is in fact a function. Is there a typo in the name? Try adding type annotations to let-bindings to ensure the code is in line with the intended types.
25+
If a function was intended to be called, make sure the value you're calling is in fact a function. Is there a typo in the name? Try adding type annotations to let-bindings to ensure the code is in line with the intended types.

0 commit comments

Comments
 (0)