VM exits abnormally if a getter calls an abstract superclass getter #7420
Labels
area-vm
Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.
closed-obsolete
Closed as the reported issue is no longer relevant
The following program yields the error below, and if run in the editor does not drop into the debugger. Instead the VM exits with status 255. The code is clearly incorrect, but only shows a warning in the editor, and seems like it should end up in noSuchMethod or some other more normal failure mode.
file:///Users/alanknight/dart/Scratch/missingsuper.dart': Error: line 9 pos 20: field or getter 'foo' not found in superclass
print(super.foo);
abstract class Superclass {
get foo;
}
class CallAbstractSuperMethod extends Superclass {
get foo {
print(x);
print(super.foo);
return 3;
}
}
main() {
new CallAbstractSuperMethod().foo;
}
The text was updated successfully, but these errors were encountered: