Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make TypedScope no longer extend Scope and TypedVar no longer extend …
…Var. These two changes need to be done simultaneously since TypedScopes want to return TypedVars and vice versa, and if one subclass relationship is broken then the return types of the other are no longer properly covariant. Making the typed and untyped versions of Scope and Var more distinct allows using generics more cleanly. It also enables us to remove the redundant overrides in the typed versions that simply called the superclass and casted the result. Many of those methods in the abstract base class can now be marked 'final'. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=181703776
- Loading branch information
Showing
11 changed files
with
181 additions
and
253 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
Oops, something went wrong.