-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wildcards] fix super formal positional param handling
Fixes `co19/src/LanguageFeatures/Wildcards/super_parameters_A04_t02.dart` ``` class A { final int x, y; A(this.x, [this.y = 0]); } class C extends A { final int _; String log = ""; C(this._, super._, [super._]) { log = "_=$_, x=$x, y=$y"; } C.n(this._, super._, [super._ = 1]) { log = "_=$_, x=$x, y=$y"; } } main() { Expect.equals("_=1, x=2, y=3", C(1, 2, 3).log); Expect.equals("_=1, x=2, y=0", C(1, 2).log); Expect.equals("_=1, x=2, y=1", C.n(1, 2).log); } ``` See: #55680 Change-Id: Ia87ae6a73816a08ca83d77c7f077e9ed7c153ebb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/380883 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
- Loading branch information
Showing
4 changed files
with
62 additions
and
16 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