Invalid optional parameter passing with factory constructor tearoffs #48548
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Dart SDK version: 2.16.1 (stable) (Tue Feb 8 12:02:33 2022 +0100) on "macos_x64"
and
Dart SDK version: 2.17.0-182.0.dev (dev) (Sun Mar 6 19:03:46 2022 -0800) on "macos_x64"
Consider the following example:
the expected output would be:
but the actual result is:
similarly if we replace the optional positional parameters with named ones the same invalid behavior can be observed.
The text was updated successfully, but these errors were encountered: