-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(FileSystem): relax .problems attribute type
List[Report] and List[ExtractionProblem] are not compatible in general due to mutability of the list could cause a non-ExtractionProblem Report to appear in the FileSystem.problems. However we do not expect to do anything with the FileSystem.problems other than collecting them, so the specialized type is not really important. What we do lose is explicitly preventing the aliasing problem, whose risk is considered very low. In the end .problems can be passed in directly in ExtractResult, without making an explicit copy in every case, just to get the type checker happy.
- Loading branch information
1 parent
e5e923a
commit 95dbbc7
Showing
5 changed files
with
6 additions
and
5 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
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
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
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
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