-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate argument amount in old(...) calls (#1810)
Previously if you had multiple arguments to an `old(...)` call 2nd and on were simply ignored, and if you had no argument the compiler throws a `NullPointerException`. Now the compiler validates that there is exactly one argument to an `old(...)` call. Due to the multiple arguments now being forbidden, this is theoretically a breaking change, but until recently the whole feature was not even documented and probably very few people use it at all, let alone with multiple arguments.
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 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