We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbc9cb6 commit 0b31d88Copy full SHA for 0b31d88
tests/language/wildcard_variables/declarations/record_type_test.dart
@@ -10,17 +10,17 @@ import 'dart:async';
10
11
import 'package:expect/expect.dart';
12
13
-typedef R = (String _, String _);
+typedef R = (int _, int _);
14
15
void main() {
16
(int _, int _) record;
17
record = (1, 2);
18
Expect.equals(1, record.$1);
19
Expect.equals(2, record.$2);
20
21
- R rType = ('1', '2');
22
- Expect.equals('1', rType.$1);
23
- Expect.equals('2', rType.$2);
+ R rType = (1, 2);
+ Expect.equals(1, rType.$1);
+ Expect.equals(2, rType.$2);
24
25
// Has a named field (which cannot be `_`).
26
(int _, int _, {int x}) recordX;
0 commit comments