Skip to content

Commit 4b2135b

Browse files
authored
#1399. [Records] Check corner case with trailing zeros for positional field getter (#1515)
1 parent f5fa463 commit 4b2135b

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

LanguageFeatures/Records/members_A03_t04.dart

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
///
1111
/// @description Checks that for positional fields a getter is exposed with the
1212
/// name `$` followed by number of preceding positional fields and whose type is
13-
/// the type of the field. Test that value of `i` is
14-
/// limited by the number of positional fields
13+
/// the type of the field. Test that value of `i` is limited by the number of
14+
/// positional fields
1515
/// @author [email protected]
1616
1717
// SharedOptions=--enable-experiment=records
@@ -33,6 +33,21 @@ main() {
3333
r1.$10000000000000000000000000;
3434
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^
3535
// [analyzer] unspecified
36+
// [cfe] unspecified
37+
38+
r1.$00;
39+
// ^^^
40+
// [analyzer] unspecified
41+
// [cfe] unspecified
42+
43+
r1.$01;
44+
// ^^^
45+
// [analyzer] unspecified
46+
// [cfe] unspecified
47+
48+
r1.$0x0;
49+
// ^^^^
50+
// [analyzer] unspecified
3651
// [cfe] unspecified
3752

3853
(3, 1, 4, name: "pi").$3;

0 commit comments

Comments
 (0)