Some primary expressions cannot form statements #1489
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P3
A lower priority bug or feature request
Milestone
r3865 (cloned from issue #1228)
The Dart spec v0.006 states that any expression can form a statement.
However, dartc yields compile error if function expression, list literal, or map literal are used as statements:
main() {
void() g{};
{"1" : 1, "2": 2};
[null, 0, "O"];
}
The text was updated successfully, but these errors were encountered: