Files
sdk/pkg/front_end/testcases/inference/async_await.dart.weak.expect
T
Johnni Winther 56f46b0659 Remove non-nullable experiment flag from front_end test cases.
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>
2021-02-18 12:29:18 +00:00

75 lines
3.7 KiB
Plaintext

library test;
import self as self;
import "dart:core" as core;
import "dart:async" as asy;
import "dart:async";
abstract class MyFuture extends core::Object implements asy::Future<core::int*> {
synthetic constructor •() → self::MyFuture*
: 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 member-signature method then<R extends core::Object* = dynamic>((core::int*) →* FutureOr<self::MyFuture::then::R*>* onValue, {core::Function* onError = #C1}) → asy::Future<self::MyFuture::then::R*>*; -> asy::Future::then
abstract member-signature method catchError(core::Function* onError, {(core::Object*) →* core::bool* test = #C1}) → asy::Future<core::int*>*; -> asy::Future::catchError
abstract member-signature method whenComplete(() →* FutureOr<void>* action) → asy::Future<core::int*>*; -> asy::Future::whenComplete
abstract member-signature method asStream() → asy::Stream<core::int*>*; -> asy::Future::asStream
abstract member-signature method timeout(core::Duration* timeLimit, {generic-covariant-impl () →* FutureOr<core::int*>* onTimeout = #C1}) → asy::Future<core::int*>*; -> asy::Future::timeout
}
static method test() → void async {
core::int* x0;
asy::Future<core::int*>* x1;
asy::Future<asy::Future<core::int*>*>* x2;
asy::Future<FutureOr<core::int*>*>* x3;
asy::Future<self::MyFuture*>* x4;
FutureOr<core::int*>* x5;
FutureOr<asy::Future<core::int*>*>* x6;
FutureOr<FutureOr<core::int*>*>* x7;
FutureOr<self::MyFuture*>* x8;
self::MyFuture* x9;
function test0() → asy::Future<core::int*>* async
return x0;
function test1() → asy::Future<core::int*>* async
return x1;
function test2() → asy::Future<asy::Future<core::int*>*>* async
return x2;
function test3() → asy::Future<FutureOr<core::int*>*>* async
return x3;
function test4() → asy::Future<self::MyFuture*>* async
return x4;
function test5() → asy::Future<core::int*>* async
return x5;
function test6() → asy::Future<asy::Future<core::int*>*>* async
return x6;
function test7() → asy::Future<FutureOr<core::int*>*>* async
return x7;
function test8() → asy::Future<self::MyFuture*>* async
return x8;
function test9() → asy::Future<core::int*>* async
return x9;
core::int* y0 = await x0;
core::int* y1 = await x1;
asy::Future<core::int*>* y2 = await x2;
FutureOr<core::int*>* y3 = await x3;
self::MyFuture* y4 = await x4;
core::int* y5 = await x5;
asy::Future<core::int*>* y6 = await x6;
FutureOr<core::int*>* y7 = await x7;
self::MyFuture* y8 = await x8;
core::int* y9 = await x9;
}
static method main() → dynamic {}
constants {
#C1 = null
}