| library test; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/inference/abstract_class_instantiation.dart:17:33: Error: The class 'C' is abstract and can't be instantiated. |
| // var /*@type=dynamic*/ x = new C(); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/abstract_class_instantiation.dart:18:33: Error: The class 'D' is abstract and can't be instantiated. |
| // var /*@type=dynamic*/ y = new D(1); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/abstract_class_instantiation.dart:19:24: Error: The class 'D' is abstract and can't be instantiated. |
| // D<List<int>> z = new D(/*@typeArgs=dynamic*/ []); |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| abstract class C extends core::Object { |
| synthetic constructor •() → self::C* |
| : super core::Object::•() |
| ; |
| 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 |
| } |
| abstract class D<T extends core::Object* = dynamic> extends core::Object { |
| constructor •(self::D::T* t) → self::D<self::D::T*>* |
| : super core::Object::•() |
| ; |
| 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 |
| } |
| static method test() → void { |
| dynamic x = throw new core::AbstractClassInstantiationError::•("C"); |
| dynamic y = let final core::Object* #t1 = 1 in throw new core::AbstractClassInstantiationError::•("D"); |
| self::D<core::List<core::int*>*>* z = let final core::Object* #t2 = core::_GrowableList::•<dynamic>(0) in throw new core::AbstractClassInstantiationError::•("D"); |
| } |
| static method main() → dynamic {} |