@MirrorsUsed needs way to retain all instance methods with a certain name #15408
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
library-mirrors
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
Consider that you want to test if an object supports a given method but don't want to check for NoSuchMethodError.
In this case you cannot point to a specify instance method (if you could, you could just have used an "is" test).
In the current @MirrorsUsed this could be:
@MirrorsUsed(instanceMethods: 'foo')
import 'dart:mirrors';
The text was updated successfully, but these errors were encountered: