blob: 493f90d441dd390253ebc8e9b8d969e705424e07 [file] [log] [blame]
// @dart = 2.9
library test;
import 'dart:async';
Future foo() => new Future<int>.value(1);
class MyFuture<T> implements Future<T> {
MyFuture() {}
MyFuture.value(T x) {}
MyFuture<S> then<S>(FutureOr<S> f(T x), {Function onError}) => null;
dynamic noSuchMethod(invocation) => null;
}
main() {}
void test() {}