-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Cannot reduce inline match with an enum-based Nat #6781
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
Comments
@AleksanderBG you had some insight of how the |
@nicolasstucki cannot reduce delegate match with
scrutinee: {
App.Nat.Succ.apply[App.Nat](App.Nat.Succ.apply[App.Nat](App.Nat$#Zero))
} : App.Nat |
Unassigning myself and removing the bug label, since this is more of a design limitation than a bug. We can talk about it during the next monday meeting. |
@odersky wdyt? |
I agree it's a spec thing. One more fact that strengthens the case for making cases have the more specific type. |
minimized code
results in a compile time error:
expectation
To work as the "old" encoding:
nitpick: the error message should have been about inline match instead of delegate
The text was updated successfully, but these errors were encountered: