Skip to content

Commit

Permalink
[wildcard-variables][test] Fix wildcard language tests.
Browse files Browse the repository at this point in the history
This CL fixes some bugs in a few tests and removes unnamed optional default tests.

Bug: #55652
Change-Id: I41be6eb2f45598803eaeddd99375aa9cdb3fa990
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/373324
Commit-Queue: Kallen Tu <kallentu@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
  • Loading branch information
kallentu authored and Commit Queue committed Jun 27, 2024
1 parent b64c640 commit 6fcfa93
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 128 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void main() {
var c = C(1);
Expect.equals(1, c._);

var cWithPositional = C.withPositional(1, 100);
var cWithPositional = C.superAndPositional(1, 100);
Expect.equals(1, cWithPositional._);

var multipleSuperParameters = MultipleSuperParameters(1, 2, 3);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ class StaticMember {
var (_, _) = (3, '4');
Expect.equals(2, _);

_ = 4;
Expect.equals(4, _);

int foo<_>([int _ = _ + 1]) => _;
Expect.equals(4, foo());
Expect.equals(2, foo());
}
}

This file was deleted.

This file was deleted.

0 comments on commit 6fcfa93

Please sign in to comment.