Unexpected behavior of InstanceMirror.setField / invoke when invoking a setter. #13083
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)
The attached program generates a NoSuchMethodError instead of invoking the setter g. This is the same on the Dart VM and in dart2js:
Symbol("g=")
Unhandled exception:
Class 'A' has no instance setter 'g=='.
NoSuchMethodError : method not found: 'g=='
Receiver: Instance of 'A'
Replacing setField with invoke does not help. Instead I get:
Symbol("g=")
Unhandled exception:
Class 'A' has no instance method 'g='.
NoSuchMethodError : method not found: 'g='
Receiver: Instance of 'A'
Arguments: [42]
Attachment:
invoc.dart (465 Bytes)
The text was updated successfully, but these errors were encountered: