Closured constants as default argument values don't work on functions with modifiers in the VM #27719
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Default values for optional arguments that come from closured
const
variables don't work on functions with modifiers (async
,async*
,sync*
).This bug seems to be new in Dart
1.20
, as it was working in1.19.1
.This is not an issue for normal functions without modifiers, and not an issue for
const
variables that are top-level or within a class.It also only occurs on the VM, and not dart2js.
This issue applies for both named and positional optional arguments.
Reduced test case
The text was updated successfully, but these errors were encountered: