-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Illegal syntax in an active pattern produces an internal compiler error #5745
Comments
From F# 4.0:
So the error message is different, but it's still an internal error. |
I assume we should replace the "UnionCase" with "ActivePattern". But would this be helpful? |
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Oct 9, 2018
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Oct 9, 2018
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Oct 9, 2018
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Oct 9, 2018
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Oct 9, 2018
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Oct 10, 2018
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Oct 10, 2018
KevinRansom
pushed a commit
that referenced
this issue
Oct 15, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description: A specific kind of incorrect syntax in an active pattern definition causes an internal compiler error rather than a message specific to the error.
Repro Steps: Add the following code:
Expected: An error along the lines of:
'Active pattern bindings do not support field names.'
Actual:
'error FS0073: internal error: impossible (Failure)'
Severity: minor.
Version: F# 4.5
Workaround: Use correct active pattern syntax. In this case, omit the x= and y=.
The text was updated successfully, but these errors were encountered: