blob: c317b12d59007004b3e3556c3f0cd83bccee6be2 [file] [log] [blame]
library test;
import self as self;
import "dart:core" as core;
import "dart:async" as asy;
class MyFuture<T extends core::Object = dynamic> extends core::Object implements asy::Future<self::MyFuture::T> {
constructor •() void
: super core::Object::•() {}
constructor value(self::MyFuture::T x) void
: super core::Object::•() {}
method noSuchMethod(core::Invocation invocation) dynamic
return null;
method then<S extends core::Object = dynamic>((self::MyFuture::T) asy::FutureOr<self::MyFuture::then::S> f, {core::Function onError = null}) self::MyFuture<self::MyFuture::then::S>
return null;
abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) core::bool test = null}) asy::Future<self::MyFuture::T>;
abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() asy::FutureOr<dynamic> action) asy::Future<self::MyFuture::T>;
abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl () asy::FutureOr<self::MyFuture::T> onTimeout = null}) asy::Future<self::MyFuture::T>;
abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() asy::Stream<self::MyFuture::T>;
}
static method test() void {
self::MyFuture<dynamic> f;
self::MyFuture<core::int> t1 = f.{self::MyFuture::then}<core::int>((dynamic _) asy::Future<core::int> async => await asy::Future::value<core::int>(3));
self::MyFuture<core::int> t2 = f.{self::MyFuture::then}<core::int>((dynamic _) asy::Future<core::int> async {
return await asy::Future::value<core::int>(3);
});
self::MyFuture<core::int> t3 = f.{self::MyFuture::then}<core::int>((dynamic _) asy::Future<core::int> async => 3);
self::MyFuture<core::int> t4 = f.{self::MyFuture::then}<core::int>((dynamic _) asy::Future<core::int> async {
return 3;
});
self::MyFuture<core::int> t5 = f.{self::MyFuture::then}<core::int>((dynamic _) asy::Future<core::int> => asy::Future::value<core::int>(3));
self::MyFuture<core::int> t6 = f.{self::MyFuture::then}<core::int>((dynamic _) asy::Future<core::int> {
return asy::Future::value<core::int>(3);
});
self::MyFuture<core::int> t7 = f.{self::MyFuture::then}<core::int>((dynamic _) asy::Future<core::int> async => asy::Future::value<core::int>(3));
self::MyFuture<core::int> t8 = f.{self::MyFuture::then}<core::int>((dynamic _) asy::Future<core::int> async {
return asy::Future::value<core::int>(3);
});
}
static method main() dynamic {}