ParameterMirror.isPositional is missing #11938
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-not-planned
Closed as we don't intend to take action on the reported issue
library-mirrors
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
This issue was originally filed by diego.rocha...@gmail.com
ParameterMirror currently has the properties isNamed (which is not working, as seen on issue #11334) and isOptional. There is no isPositional property.
According to the language spec, on "Formal Parameters" section, optional parameters are either named parameters or positional parameter, meaning that isOptional is not the same as isPositional.
The expected behavior is:
isOptional = isNamed || isPositional
And analogously:
isPositional = !isNamed && isOptional
The text was updated successfully, but these errors were encountered: