Skip to content
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

AND operator stopped working in some active patterns #17134

Closed
psfinaki opened this issue May 10, 2024 · 0 comments · Fixed by #17113
Closed

AND operator stopped working in some active patterns #17134

psfinaki opened this issue May 10, 2024 · 0 comments · Fixed by #17113
Assignees
Labels
Area-Compiler-Syntax lexfilter, indentation and parsing Bug Regression
Milestone

Comments

@psfinaki
Copy link
Member

Active pattern after the & used to be allowed:

let (_ : exn & Failure _ | _) = exn ()

Same applies for a match on an exception type declared with the exception keyword, which was also allowed before:

exception MyExn

let (_ : exn & MyExn | _) = exn ()

This causes parser errors now, like

Constraint intersection syntax may only be used with flexible types, e.g. '#IDisposable & #ISomeInterface'.

Originally posted by @brianrourkeboll in #17113 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compiler-Syntax lexfilter, indentation and parsing Bug Regression
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants