| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/super_call.dart:14:12: Error: Can't use 'super' as an expression. |
| // To delegate a constructor to a super constructor, put the super call as an initializer. |
| // return super(5); |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class A extends core::Object { |
| synthetic constructor •() → self::A* |
| : super core::Object::•() |
| ; |
| method call(core::int* x) → core::int* |
| return x.{core::num::*}(2); |
| abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode |
| abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf |
| abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf |
| abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue |
| abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse |
| abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== |
| abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode |
| abstract member-signature method toString() → core::String*; -> core::Object::toString |
| abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod |
| abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType |
| } |
| class B extends self::A { |
| synthetic constructor •() → self::B* |
| : super self::A::•() |
| ; |
| method call(core::int* x) → core::int* |
| return x.{core::num::*}(3); |
| method call_super() → core::int* { |
| return invalid-expression "pkg/front_end/testcases/general/super_call.dart:14:12: Error: Can't use 'super' as an expression. |
| To delegate a constructor to a super constructor, put the super call as an initializer. |
| return super(5); |
| ^" as{TypeError,ForDynamic} core::int*; |
| } |
| } |
| static method main() → dynamic { |
| assert(new self::B::•().{self::B::call_super}().{core::num::==}(10)); |
| } |