blob: 964cf88650f410762ae50c761e930f2f5c06b3d1 [file] [log] [blame]
library;
import self as self;
import "dart:test" as test;
import "dart:test";
static method main() dynamic {
new test::Class::patched();
new test::Class::unpatched();
new test::SubClass::patched();
new test::SubClass::unpatched();
}
library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/mixin_from_patch/origin_lib.dart:14:12: Error: The superclass, 'Class with Mixin', has no unnamed constructor that takes no arguments.
// external SubClass.patched();
// ^^^^^^^
//
import self as test;
import "dart:_internal" as _in;
import "dart:core" as core;
import "dart:_internal";
@#C1
class Class extends core::Object {
constructor _internal({core::bool* value = #C2}) → test::Class*
: super core::Object::•()
;
@#C1
constructor patched() test::Class*
: this test::Class::_internal()
;
constructor unpatched() test::Class*
: 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 Mixin extends core::Object /*isMixinDeclaration*/ {
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 _SubClass&Class&Mixin = test::Class with test::Mixin /*isAnonymousMixin*/ {
synthetic constructor patched() test::_SubClass&Class&Mixin*
: super test::Class::patched()
;
synthetic constructor unpatched() test::_SubClass&Class&Mixin*
: super test::Class::unpatched()
;
synthetic constructor _internal({core::bool* value = #C2}) → test::_SubClass&Class&Mixin*
: super test::Class::_internal(value: value)
;
}
@#C1
class SubClass extends test::_SubClass&Class&Mixin {
constructor _internal() test::SubClass*
: super test::_SubClass&Class&Mixin::_internal(value: true)
;
@#C1
constructor patched() test::SubClass*
: this test::SubClass::_internal()
;
constructor unpatched() test::SubClass*
: super test::_SubClass&Class&Mixin::unpatched()
;
}
constants {
#C1 = _in::_Patch {}
#C2 = false
}