Skip to content

Commit 0b31d88

Browse files
kallentuCommit Queue
authored and
Commit Queue
committed
[test][wildcard-variables] Fix typedef record type.
This switch would've failed regardless. This CL switches the types of the typedef R so that this test would pass. Bug: #55652 Change-Id: Ic36863a38e3197bd9012907caa9f445faf4945b3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371021 Commit-Queue: Kallen Tu <[email protected]> Reviewed-by: Lasse Nielsen <[email protected]>
1 parent bbc9cb6 commit 0b31d88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/language/wildcard_variables/declarations/record_type_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ import 'dart:async';
1010

1111
import 'package:expect/expect.dart';
1212

13-
typedef R = (String _, String _);
13+
typedef R = (int _, int _);
1414

1515
void main() {
1616
(int _, int _) record;
1717
record = (1, 2);
1818
Expect.equals(1, record.$1);
1919
Expect.equals(2, record.$2);
2020

21-
R rType = ('1', '2');
22-
Expect.equals('1', rType.$1);
23-
Expect.equals('2', rType.$2);
21+
R rType = (1, 2);
22+
Expect.equals(1, rType.$1);
23+
Expect.equals(2, rType.$2);
2424

2525
// Has a named field (which cannot be `_`).
2626
(int _, int _, {int x}) recordX;

0 commit comments

Comments
 (0)