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

Remove EAsSet[E] and WAsSet[W] traits in Transformers.scala to address IntelliJ error #3840

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

Scott-Guest
Copy link
Contributor

@Scott-Guest Scott-Guest commented Dec 4, 2023

This PR removes the EAsSet[E] and WAsSet[W] traits in Transformers.scala, and instead just duplicates a few lines of code between SetsGeneralTransformer and SetsTransformerWithErrors.

As a result, we fix an annoying issue where IntelliJ incorrectly reports an error on every inheritor of these classes, falsely claiming that errorUnit() has an incorrect return type.

Given that the cost here is low, and similar issues have bitten us in the past by blocking use of the debugger (#3816), I think this is a worthwhile change. If no one is opposed, I plan to address any similar incorrectly-reported IntelliJ errors as I encounter them.

@Scott-Guest Scott-Guest self-assigned this Dec 4, 2023
@Scott-Guest Scott-Guest marked this pull request as ready for review December 4, 2023 05:17
Copy link
Contributor

@Baltoli Baltoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; strongly pro making this kind of incremental change as we work on the code. Thanks Scott!

@rv-jenkins rv-jenkins merged commit d73a7ee into develop Dec 4, 2023
24 checks passed
@rv-jenkins rv-jenkins deleted the transformer branch December 4, 2023 10:27
@Baltoli Baltoli mentioned this pull request Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants