You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
abstract class A {
int prop;
}
class B {
B(this.obj);
Object obj;
void meth1(Object obj) {
if (obj is A) {
print(obj.prop); // Ok.
}
}
void meth2() {
if (obj is A) {
print(obj.prop); // Error: The getter 'prop' isn't defined for the type 'Object'.
}
}
}