Open
Description
Say you have
class A {}
class B extends A {
int foo() => 0;
}
class C {
C(this.a);
A a;
}
void main() {
var c = C(B()); // Breakpoint here
}
Now you try to evaluate c.a.foo()
it gives you an error message about foo
not being defined for A
. But if you do (c.a as dynamic).foo()
everything works normally and it can result in 0
here.
Could the evaluations do something like this internally?
// CC @DanTup