-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
EAsSet[E]
and WAsSet[W]
traits in Transformers.scala
to …
…address IntelliJ error (#3840) 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.
- Loading branch information
1 parent
17f2c27
commit d73a7ee
Showing
1 changed file
with
31 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters