Closed
Description
It works fine with normal methods but not with getters and setters:
class A {
set x(val) {
print("A.x <- $val");
}
get x {
print("<- A.x");
}
}
class B {
final a = new A();
noSuchMethod(mirror) => mirror.invokeOn(a);
}
main () {
var b = new B();
print('before set x');
b.x = 10;
print('before get x');
b.x;
}
explodes.