Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously we were inferring them based on the return type of the constructor, which is typically undefined. But it actually returns the 'this' instance for the remainder of the constructor, and we should infer it using the new: slot of the function. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206413799
- Loading branch information
Showing
3 changed files
with
51 additions
and
9 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