blob: 6421b2c8b8c16aff69c105deb3f32d7afc24eb52 [file] [log] [blame]
library;
import self as self;
import "dart:core" as core;
abstract class A extends core::Object {
synthetic constructor •() void
: super core::Object::•()
;
}
class B extends self::A {
constructor •() void
: 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 {}