-
Notifications
You must be signed in to change notification settings - Fork 830
Fix for #2373 #2404
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
Fix for #2373 #2404
Conversation
BillHally
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this.
You could combine the test you make in the "if" clause with the existing "when" clause, and then you wouldn't need to duplicate the code in the "else" clause and the outermost "_" match case.
|
@liboz Any chance we could add a regression test, to ensure we keep it working? Kevin |
|
I'm not sure how to add a test that uses peverify because the weird thing about this case is that the compilation step works for the broken code, but it fails peverify. |
|
@liboz I believe there are many tests that compile and peverify, search the codebase. |
|
@vasily-kirichenko @dsyme Thanks for pointing me in the right direction. |
|
@liboz |
Attempts to fix #2373