Skip to content

Commit afc471a

Browse files
authored
Fixes #2083. Expect unspecified error in const_collections_A08_t01.dart (#2084)
1 parent 06b8ce7 commit afc471a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

LanguageFeatures/Control-flow-collections/const_collections_A08_t01.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ main() {
3333
// [cfe] unspecified
3434
List<int> list6 = const [for (var i in [1, 2, 3]) i];
3535
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
36-
// [analyzer] COMPILE_TIME_ERROR.NON_CONSTANT_LIST_ELEMENT
37-
// [cfe] 'for' is not supported in constant expressions.
36+
// [analyzer] unspecified
37+
// [cfe] unspecified
3838
const List<int> list7 = [for (var i in [1, 2, 3]) i];
3939
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
4040
// [analyzer] unspecified
4141
// [cfe] unspecified
4242
var list8 = const [for (var i in [1, 2, 3]) i];
4343
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
44-
// [analyzer] COMPILE_TIME_ERROR.NON_CONSTANT_LIST_ELEMENT
45-
// [cfe] 'for' is not supported in constant expressions.
44+
// [analyzer] unspecified
45+
// [cfe] unspecified
4646
var list9 = const <int>[for (var i in [1, 2, 3]) i];
4747
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
48-
// [analyzer] COMPILE_TIME_ERROR.NON_CONSTANT_LIST_ELEMENT
49-
// [cfe] 'for' is not supported in constant expressions.
48+
// [analyzer] unspecified
49+
// [cfe] unspecified
5050
const list10 = [for (var i in [1, 2, 3]) i];
5151
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
5252
// [analyzer] unspecified
@@ -74,8 +74,8 @@ main() {
7474
// [cfe] unspecified
7575
Set<int> set6 = const {for (var i in [1, 2, 3]) i};
7676
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
77-
// [analyzer] COMPILE_TIME_ERROR.NON_CONSTANT_SET_ELEMENT
78-
// [cfe] 'for' is not supported in constant expressions.
77+
// [analyzer] unspecified
78+
// [cfe] unspecified
7979
const Set<int> set7 = {for (var i in [1, 2, 3]) i};
8080
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
8181
// [analyzer] unspecified

0 commit comments

Comments
 (0)