Unable to create a static map of functions #2402
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-duplicate
Closed in favor of an existing report
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by @tomyeh
What steps will reproduce the problem?
typedef void Func();
Map<String, Func> funcs = const {
"foo", () {}
};
What is the expected output? What do you see instead?
A constant map shall be created. But, DartVM throws an exception saying "expression mst be a compile time constatn".
What version of the product are you using? On what operating system?
Dartium 129764 on Linux
The text was updated successfully, but these errors were encountered: