Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ main() {
// [cfe] unspecified
List<int> list6 = const [for (var i in [1, 2, 3]) i];
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.NON_CONSTANT_LIST_ELEMENT
// [cfe] 'for' is not supported in constant expressions.
// [analyzer] unspecified
// [cfe] unspecified
const List<int> list7 = [for (var i in [1, 2, 3]) i];
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
var list8 = const [for (var i in [1, 2, 3]) i];
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.NON_CONSTANT_LIST_ELEMENT
// [cfe] 'for' is not supported in constant expressions.
// [analyzer] unspecified
// [cfe] unspecified
var list9 = const <int>[for (var i in [1, 2, 3]) i];
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.NON_CONSTANT_LIST_ELEMENT
// [cfe] 'for' is not supported in constant expressions.
// [analyzer] unspecified
// [cfe] unspecified
const list10 = [for (var i in [1, 2, 3]) i];
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] unspecified
Expand Down Expand Up @@ -74,8 +74,8 @@ main() {
// [cfe] unspecified
Set<int> set6 = const {for (var i in [1, 2, 3]) i};
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.NON_CONSTANT_SET_ELEMENT
// [cfe] 'for' is not supported in constant expressions.
// [analyzer] unspecified
// [cfe] unspecified
const Set<int> set7 = {for (var i in [1, 2, 3]) i};
// ^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] unspecified
Expand Down