blob: 3c4e3e0b6f75fe43ca3fe95691fef3e4f88a5c40 [file] [log] [blame]
library;
import self as self;
import "dart:core" as core;
class A extends core::Object {
default constructor •() void
: super core::Object::•()
;
method call(core::int x) core::int
return x.{core::num::*}(2);
}
class B extends self::A {
default constructor •() void
: super self::A::•()
;
method call(core::int x) core::int
return x.{core::num::*}(3);
method call_super() core::int {
return const core::_ConstantExpressionError::•().{core::_ConstantExpressionError::_throw}(new core::_CompileTimeError::•("pkg/front_end/testcases/super_call.dart:14:12: Error: Can't use 'super' as an expression.\nTo delegate a constructor to a super constructor, put the super call as an initializer.\n return super(5);\n ^")) as{TypeError} core::int;
}
}
static method main() dynamic {
assert(new self::B::•().{self::B::call_super}().{core::num::==}(10));
}