Inconsistent symbols with ClassMirror constructors and ClassMirror newInstance #11161
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
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
ClassMirror.constructors returns this:
Foo.bar, Foo.baz (as symbols, with classname.constructorname)
However, ClassMirror.newInstance wants a symbol of 'bar' or 'baz' (only the constructor names)
This means I can't take a symbol from constructors and use it with newInstance. I need to peel off the class name from the symbols coming from
constructors
.Could we make these consistent?
The text was updated successfully, but these errors were encountered: