-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loosen the rules for AutoBuilder copy-constructors.
If the built type has a method `T getFoo()` and its constructor has a parameter `U foo`, then we should still generate a copy-constructor provided `T` is assignable to `U`. The copy-constructor will call `getFoo()` on its parameter and by default that is the value that will get passed to the constructor when `build()` is called. RELNOTES=AutoBuilder copy-constructors no longer require an exact match between a property and the corresponding constructor parameter. PiperOrigin-RevId: 508917172
- Loading branch information
1 parent
8ba4531
commit 1440a25
Showing
4 changed files
with
51 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