blob: 69acf0dd95d06f5ab04b87a221ae5f9b2fd72be9 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/records/type_record_unsupported.dart:59:16: Error: 'Record' is restricted and can't be extended or implemented.
// abstract class A1 extends Record {} // Error.
// ^
//
// pkg/front_end/testcases/records/type_record_unsupported.dart:61:16: Error: 'Record' is restricted and can't be extended or implemented.
// abstract class A2 implements Record {} // Error.
// ^
//
// pkg/front_end/testcases/records/type_record_unsupported.dart:63:16: Error: 'Record' is restricted and can't be extended or implemented.
// abstract class A3 with Record {} // Error.
// ^
//
// pkg/front_end/testcases/records/type_record_unsupported.dart:71:16: Error: 'Record' is restricted and can't be extended or implemented.
// abstract class A7 extends FromSupportedR {} // Error.
// ^
// pkg/front_end/testcases/records/type_record_unsupported_lib.dart:7:9: Context: The issue arises via this type alias.
// typedef FromSupportedR = Record;
// ^
//
// pkg/front_end/testcases/records/type_record_unsupported.dart:75:16: Error: 'Record' is restricted and can't be extended or implemented.
// abstract class A9 extends FromSupportedRR {} // Error.
// ^
// pkg/front_end/testcases/records/type_record_unsupported_lib.dart:11:9: Context: The issue arises via this type alias.
// typedef FromSupportedRR = FromSupportedR;
// ^
//
import self as self;
import "dart:core" as core;
import "type_record_unsupported_lib.dart" as typ;
import "org-dartlang-testcase:///type_record_unsupported_lib.dart";
typedef R = core::Record;
typedef AR = typ::A<core::Record>;
typedef AR2 = typ::A<core::Record>;
typedef AR3 = typ::A<core::Record>;
typedef AR4 = typ::A<typ::A<core::Record>>;
typedef RR = core::Record;
abstract class A1 extends core::Record {
synthetic constructor •() self::A1
;
}
abstract class A2 extends core::Object implements core::Record {
synthetic constructor •() self::A2
;
}
abstract final class _A3&Object&Record = core::Object with core::Record /*isAnonymousMixin,hasConstConstructor*/ {
const synthetic constructor •() self::_A3&Object&Record
: super core::Object::•()
;
abstract mixin-stub get runtimeType() core::Type; -> core::Record::runtimeType
abstract mixin-stub get hashCode() core::int; -> core::Record::hashCode
abstract mixin-stub operator ==(core::Object other) core::bool; -> core::Record::==
abstract mixin-stub method toString() core::String; -> core::Record::toString
}
abstract class A3 extends self::_A3&Object&Record {
synthetic constructor •() self::A3
;
}
abstract class A4 extends typ::A<core::Record> {
synthetic constructor •() self::A4
;
}
abstract class A5 extends core::Object implements typ::A<core::Record> {
synthetic constructor •() self::A5
;
}
abstract class _A6&Object&A = core::Object with typ::A<core::Record> /*isAnonymousMixin,hasConstConstructor*/ {
const synthetic constructor •() self::_A6&Object&A
: super core::Object::•()
;
}
abstract class A6 extends self::_A6&Object&A {
synthetic constructor •() self::A6
;
}
abstract class A7 extends core::Record {
synthetic constructor •() self::A7
;
}
abstract class A8 extends typ::A<core::Record> {
synthetic constructor •() self::A8
;
}
abstract class A9 extends core::Record {
synthetic constructor •() self::A9
;
}
static method foo1() core::Record
;
static method foo2() dynamic
;
static method foo3() dynamic
;
static method foo4() dynamic
;
static method foo5() dynamic
;
static method foo6() dynamic
;
static method foo7(core::Record r) dynamic
;
static method foo8({required core::Record r}) dynamic
;
static method foo9() core::List<core::Record>
;
static method foo10(core::List<core::Record> l) dynamic
;
static method foo11() core::Record
;
static method foo12() typ::A<core::Record>
;
static method foo13() core::Record
;
static method foo14(core::Record r) dynamic
;
static method foo15(typ::A<core::Record> l) dynamic
;
static method foo16(core::Record l) dynamic
;
static method foo17() dynamic
;
static method foo18() dynamic
;
static method foo19() dynamic
;
static method main() dynamic
;
library;
import self as typ;
import "dart:core" as core;
typedef FromSupportedR = core::Record;
typedef FromSupportedAR = typ::A<core::Record>;
typedef FromSupportedRR = core::Record;
abstract mixin class A<X extends core::Object? = dynamic> extends core::Object {
synthetic constructor •() typ::A<typ::A::X%>
;
}