56f46b0659
This changes the CFE expectation test suites to use unsound null safety as default to avoid passing --enable-experiments=no-non-nullable to opt out old test folders. This change removes most test folders from the 'strong' tester, since this now only supports sound null safety, which requires all libraries to be opted in. Instead, the 'weak' tester now runs all test folders. Additionally the 'outline' tester is changed to use unsound null safety so that it call be used on all test folders. The 'fast_strong' tester is removed since it should just be run locally and it can be run by passing an option to the other testers. References to non-existing 'shaker' folder has been removed from testing.json. Change-Id: Ibcc306f7b27d06b9637c205238bc408194f1d062 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/184787 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Jens Johansen <jensj@google.com>
92 lines
4.1 KiB
Plaintext
92 lines
4.1 KiB
Plaintext
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
|
|
}
|