blob: 895d3bb622eca53936cad625dfe0f728b36682d7 [file] [log] [blame]
library;
//
// Problems in library:
//
// 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() {}
// ^
//
// pkg/front_end/testcases/regress/issue_31198.dart:8:16: Error: Expected an initializer.
// B(): super().foo() {}
// ^
//
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 {}