Optional-named params do not work with function expressions. #697
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
closed-cannot-reproduce
Closed as we were unable to reproduce the reported issue
This issue was originally filed by [email protected]
The following error occurs in the VM and cannot be replicated on http://try.dartlang.org/
The following code emits this error (unexpected token ':'):
void f([num x = 0, num y = 0]) {}
main() => f(x:12, y:13);
This variant works just fine:
void f([num x = 0, num y = 0]) {}
main() {
f(x:12, y:13);
}
The text was updated successfully, but these errors were encountered: