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

Seal VerificationError and ErrorReason? #749

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

pieter-bos
Copy link
Contributor

Hi! We occasionally forget to match cases of ErrorReason/VerificationError. I think it would be nice if scalac warns us of this, so could we seal them?

Also, I notice that there are no ErrorReasons that are not also an AbstractErrorReason, and similarly no VerificationErrors that are not also a AbstractVerificationError (other than one mock), do you think it's a good idea to merge them?

@marcoeilers
Copy link
Contributor

Thanks! That seems like a reasonable change to me. Any objections @JonasAlaif?

@JonasAlaif
Copy link
Contributor

Looks good to me, when I was looking at this at some point before I also thought that there was some redundancy and would be in favour of merging

@marcoeilers marcoeilers merged commit 31c94df into viperproject:master Oct 26, 2023
@pieter-bos pieter-bos deleted the seal-verification-errors branch October 27, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants