abstract_super_member_reference
The {0} '{1}' is always abstract in the supertype.
Description
#The analyzer produces this diagnostic when an inherited member is
referenced using super
, but there is no concrete implementation of the
member in the superclass chain. Abstract members can't be invoked.
Example
#The following code produces this diagnostic because B
doesn't inherit a
concrete implementation of a
:
dart
abstract class A {
int get a;
}
class B extends A {
int get a => super.a;
}
Common fixes
#除非另有说明,文档之所提及适用于 Dart 3.7.3 版本,本页面最后更新时间: 2025-05-08。 查看文档源码 或者 报告页面问题。