Skip to content

Commit 6fcfa93

Browse files
kallentuCommit Queue
authored and
Commit Queue
committed
[wildcard-variables][test] Fix wildcard language tests.
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 <[email protected]> Reviewed-by: Lasse Nielsen <[email protected]>
1 parent b64c640 commit 6fcfa93

File tree

4 files changed

+2
-128
lines changed

4 files changed

+2
-128
lines changed

tests/language/wildcard_variables/initializing_formal_parameters/super_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void main() {
1313
var c = C(1);
1414
Expect.equals(1, c._);
1515

16-
var cWithPositional = C.withPositional(1, 100);
16+
var cWithPositional = C.superAndPositional(1, 100);
1717
Expect.equals(1, cWithPositional._);
1818

1919
var multipleSuperParameters = MultipleSuperParameters(1, 2, 3);

tests/language/wildcard_variables/non_binding/class_members_test.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ class StaticMember {
4545
var (_, _) = (3, '4');
4646
Expect.equals(2, _);
4747

48-
_ = 4;
49-
Expect.equals(4, _);
50-
5148
int foo<_>([int _ = _ + 1]) => _;
52-
Expect.equals(4, foo());
49+
Expect.equals(2, foo());
5350
}
5451
}

tests/language/wildcard_variables/unnamed_optional/unnamed_optional_error_test.dart

Lines changed: 0 additions & 62 deletions
This file was deleted.

tests/language/wildcard_variables/unnamed_optional/unnamed_optional_no_default_test.dart

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)