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>
119 lines
4.9 KiB
Plaintext
119 lines
4.9 KiB
Plaintext
library;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/extensions/issue38750.dart:13:5: Error: Method not found: 'C._staticFoo'.
|
|
// C._staticFoo();
|
|
// ^^^^^^^^^^
|
|
//
|
|
// pkg/front_end/testcases/extensions/issue38750.dart:12:5: Error: The method '_foo' isn't defined for the class 'C'.
|
|
// - 'C' is from 'pkg/front_end/testcases/extensions/issue38750_lib1.dart'.
|
|
// Try correcting the name to the name of an existing method, or defining a method named '_foo'.
|
|
// c._foo();
|
|
// ^^^^
|
|
//
|
|
// pkg/front_end/testcases/extensions/issue38750.dart:16:5: Error: The method '_bar' isn't defined for the class 'C'.
|
|
// - 'C' is from 'pkg/front_end/testcases/extensions/issue38750_lib1.dart'.
|
|
// Try correcting the name to the name of an existing method, or defining a method named '_bar'.
|
|
// c._bar();
|
|
// ^^^^
|
|
//
|
|
import self as self;
|
|
import "issue38750_lib1.dart" as iss;
|
|
|
|
import "org-dartlang-testcase:///issue38750_lib1.dart";
|
|
import "org-dartlang-testcase:///issue38750_lib2.dart";
|
|
|
|
static method main() → dynamic {}
|
|
static method errors() → dynamic {
|
|
iss::C* c = new iss::C::•();
|
|
invalid-expression "pkg/front_end/testcases/extensions/issue38750.dart:12:5: Error: The method '_foo' isn't defined for the class 'C'.
|
|
- 'C' is from 'pkg/front_end/testcases/extensions/issue38750_lib1.dart'.
|
|
Try correcting the name to the name of an existing method, or defining a method named '_foo'.
|
|
c._foo();
|
|
^^^^";
|
|
invalid-expression "pkg/front_end/testcases/extensions/issue38750.dart:13:5: Error: Method not found: 'C._staticFoo'.
|
|
C._staticFoo();
|
|
^^^^^^^^^^";
|
|
c.{iss::C::foo}();
|
|
iss::C::staticFoo();
|
|
invalid-expression "pkg/front_end/testcases/extensions/issue38750.dart:16:5: Error: The method '_bar' isn't defined for the class 'C'.
|
|
- 'C' is from 'pkg/front_end/testcases/extensions/issue38750_lib1.dart'.
|
|
Try correcting the name to the name of an existing method, or defining a method named '_bar'.
|
|
c._bar();
|
|
^^^^";
|
|
}
|
|
|
|
library;
|
|
import self as iss;
|
|
import "dart:core" as core;
|
|
|
|
class C extends core::Object {
|
|
synthetic constructor •() → iss::C*
|
|
: super core::Object::•()
|
|
;
|
|
method foo() → dynamic
|
|
return this.{iss::C::_foo}();
|
|
method _foo() → dynamic {
|
|
try {
|
|
throw "producing a stack trace";
|
|
}
|
|
on dynamic catch(final dynamic e, final core::StackTrace* s) {
|
|
core::print(s);
|
|
}
|
|
}
|
|
static method _staticFoo() → dynamic {
|
|
core::print("_staticFoo");
|
|
}
|
|
static method staticFoo() → dynamic
|
|
return iss::C::_staticFoo();
|
|
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
|
|
}
|
|
extension ext on iss::C* {
|
|
method _bar = iss::ext|_bar;
|
|
tearoff _bar = iss::ext|get#_bar;
|
|
}
|
|
static method ext|_bar(lowered final iss::C* #this) → dynamic {
|
|
try {
|
|
throw "producing a stack trace";
|
|
}
|
|
on dynamic catch(final dynamic e, final core::StackTrace* s) {
|
|
core::print(s);
|
|
}
|
|
}
|
|
static method ext|get#_bar(lowered final iss::C* #this) → () →* dynamic
|
|
return () → dynamic => iss::ext|_bar(#this);
|
|
|
|
library;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/extensions/issue38750_lib2.dart:9:5: Error: The method '_bar' isn't defined for the class 'C'.
|
|
// - 'C' is from 'pkg/front_end/testcases/extensions/issue38750_lib1.dart'.
|
|
// Try correcting the name to the name of an existing method, or defining a method named '_bar'.
|
|
// c._bar();
|
|
// ^^^^
|
|
//
|
|
import self as self2;
|
|
import "issue38750_lib1.dart" as iss;
|
|
|
|
import "org-dartlang-testcase:///issue38750_lib1.dart";
|
|
|
|
static method errors() → dynamic {
|
|
iss::C* c = new iss::C::•();
|
|
invalid-expression "pkg/front_end/testcases/extensions/issue38750_lib2.dart:9:5: Error: The method '_bar' isn't defined for the class 'C'.
|
|
- 'C' is from 'pkg/front_end/testcases/extensions/issue38750_lib1.dart'.
|
|
Try correcting the name to the name of an existing method, or defining a method named '_bar'.
|
|
c._bar();
|
|
^^^^";
|
|
}
|