blob: 807896b2f1cdb50b8eb526fffbd7dc81baac0370 [file] [log] [blame]
library;
import self as self;
import "dart:core" as core;
abstract class A extends core::Object {
synthetic constructor •() self::A
: super core::Object::•()
;
}
class B extends self::A {
constructor •() self::B
: final dynamic #t1 = invalid-expression "pkg/front_end/testcases/regress/issue_31198.dart:8:8: Error: Can't use 'super' as an expression.
To delegate a constructor to a super constructor, put the super call as an initializer.
B(): super().foo() {}
^".foo() {}
}
static method bad() → dynamic {
new self::B::•();
}
static method main() → dynamic {}