Closed
Description
main() {
const v = List<int>;
}
Results in the following errors when I run:
bin/test.dart:2:21: Error: An equality expression can't be an operand of another equality expression.
Try re-writing the expression.
const v = List<int>;
^
bin/test.dart:2:22: Error: Expected an identifier, but got ';'.
const v = List<int>;
^
bin/test.dart:2:17: Error: The method '<' isn't defined for the class 'Type'.
- 'Type' is from 'dart:core'.
Try correcting the name to the name of an existing method, or defining a method named '<'.
const v = List<int>;
^
However I'd expect this to work, because 16.2 Constants
says that type arguments are allowed: