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>
180 lines
6.4 KiB
Plaintext
180 lines
6.4 KiB
Plaintext
library;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/general/bad_setter_abstract.dart:5:8: Error: Expected a function body or '=>'.
|
|
// Try adding {}.
|
|
// set b();
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/general/bad_setter_abstract.dart:7:12: Error: Expected a function body or '=>'.
|
|
// Try adding {}.
|
|
// set c(x, y);
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/general/bad_setter_abstract.dart:5:6: Error: A setter should have exactly one formal parameter.
|
|
// set b();
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/general/bad_setter_abstract.dart:7:6: Error: A setter should have exactly one formal parameter.
|
|
// set c(x, y);
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/general/bad_setter_abstract.dart:10:8: Error: A setter should have exactly one formal parameter.
|
|
// set a();
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/general/bad_setter_abstract.dart:11:8: Error: A setter should have exactly one formal parameter.
|
|
// set d(x, y);
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/general/bad_setter_abstract.dart:15:8: Error: A setter should have exactly one formal parameter.
|
|
// set a();
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/general/bad_setter_abstract.dart:16:8: Error: A setter should have exactly one formal parameter.
|
|
// set d(x, y);
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/general/bad_setter_abstract.dart:66:9: Error: The class 'B' is abstract and can't be instantiated.
|
|
// new B();
|
|
// ^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class A extends core::Object {
|
|
synthetic constructor •() → self::A*
|
|
: super core::Object::•()
|
|
;
|
|
set a(dynamic #synthetic) → void {
|
|
invalid-expression "pkg/front_end/testcases/general/bad_setter_abstract.dart:10:8: Error: A setter should have exactly one formal parameter.
|
|
set a();
|
|
^";
|
|
;
|
|
}
|
|
set d(dynamic #synthetic) → void {
|
|
invalid-expression "pkg/front_end/testcases/general/bad_setter_abstract.dart:11:8: Error: A setter should have exactly one formal parameter.
|
|
set d(x, y);
|
|
^";
|
|
{
|
|
dynamic x;
|
|
dynamic y;
|
|
;
|
|
}
|
|
}
|
|
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 B extends core::Object {
|
|
synthetic constructor •() → self::B*
|
|
: super core::Object::•()
|
|
;
|
|
set a(dynamic #synthetic) → void {
|
|
invalid-expression "pkg/front_end/testcases/general/bad_setter_abstract.dart:15:8: Error: A setter should have exactly one formal parameter.
|
|
set a();
|
|
^";
|
|
;
|
|
}
|
|
set d(dynamic #synthetic) → void {
|
|
invalid-expression "pkg/front_end/testcases/general/bad_setter_abstract.dart:16:8: Error: A setter should have exactly one formal parameter.
|
|
set d(x, y);
|
|
^";
|
|
{
|
|
dynamic x;
|
|
dynamic y;
|
|
;
|
|
}
|
|
}
|
|
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 set b(dynamic #synthetic) → void {
|
|
invalid-expression "pkg/front_end/testcases/general/bad_setter_abstract.dart:5:6: Error: A setter should have exactly one formal parameter.
|
|
set b();
|
|
^";
|
|
;
|
|
}
|
|
static set c(dynamic #synthetic) → void {
|
|
invalid-expression "pkg/front_end/testcases/general/bad_setter_abstract.dart:7:6: Error: A setter should have exactly one formal parameter.
|
|
set c(x, y);
|
|
^";
|
|
{
|
|
dynamic x;
|
|
dynamic y;
|
|
;
|
|
}
|
|
}
|
|
static method main() → dynamic {
|
|
core::bool* threw;
|
|
try {
|
|
threw = true;
|
|
new self::A::•().{self::A::a} = null;
|
|
threw = false;
|
|
}
|
|
on dynamic catch(final dynamic e) {
|
|
}
|
|
if(!threw) {
|
|
throw "Expected an error above.";
|
|
}
|
|
try {
|
|
threw = true;
|
|
new self::A::•().{self::A::d} = null;
|
|
threw = false;
|
|
}
|
|
on dynamic catch(final dynamic e) {
|
|
}
|
|
if(!threw) {
|
|
throw "Expected an error above.";
|
|
}
|
|
try {
|
|
threw = true;
|
|
self::b = null;
|
|
threw = false;
|
|
}
|
|
on dynamic catch(final dynamic e) {
|
|
}
|
|
if(!threw) {
|
|
throw "Expected an error above.";
|
|
}
|
|
if(!threw) {
|
|
throw "Expected an error above.";
|
|
}
|
|
try {
|
|
threw = true;
|
|
self::c = null;
|
|
threw = false;
|
|
}
|
|
on dynamic catch(final dynamic e) {
|
|
}
|
|
if(!threw) {
|
|
throw "Expected an error above.";
|
|
}
|
|
try {
|
|
threw = true;
|
|
throw new core::AbstractClassInstantiationError::•("B");
|
|
threw = false;
|
|
}
|
|
on core::AbstractClassInstantiationError* catch(final core::AbstractClassInstantiationError* _) {
|
|
}
|
|
if(!threw) {
|
|
throw "Expected an error above.";
|
|
}
|
|
}
|