Uh oh!
There was an error while loading. Please reload this page.
Better error reporting for let bindings. - #17601
Conversation
❗ Release notes required
|
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>
…fsharp into better-let-binding-error-range
…fsharp into better-let-binding-error-range
SynPat range for let binding errors@psfinaki Thanks a lot for the help. You are a Legend. Will be updating the PR description soon to cover and explain all the goodness here :) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…fsharp into better-let-binding-error-range
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
vzarytovskii
commented
Sep 4, 2024
psfinaki
left a comment
There was a problem hiding this comment.
I this this is in the good shape, thanks Edgar!
Description
TcNormalizedBindingto use theSynPatrange to show more accurate error ranges.Before
After
Multi-case partial active patternsBefore
We just showed an unclear error message that did not make it clear that multi-case partial active patterns are not supported.
After
Before
FS0827: This is not a valid name for an active patternAfter
FS0827: (|A|B|)' is not a valid method name. Use a 'let' binding instead.Checklist