-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix #11897: error on given pattern in val def #12631
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
Conversation
I'm not familiar with this code, could you describe in the commit message what it did previously and what it does differently now? |
Edit (31/05/2021) - This change will break source compatibility as now given pattern in val defs will cause errors - so I imagine this should require some language import? |
Edit - not applicable |
Source-breaking change can be introduced in 3.1, but I would also prefer just not allowing givens in pattern definitions, I don't think we need another way of defining givens. |
This PR has now changed to make it an error to include given patterns in a val definition - this is still source breaking change - so how should it be introduced? |
Given that it did nothing before and was not advertised as a feature, I'm inclined to get it in without worrying about the hypothetical source compat breakage. |
5117708
to
db24586
Compare
Suggest that they use an alias given instead.
I have changed the implementation and adjusted the error message |
fixes #11897
fixes #12629