blob: 851ea4eb644c1e58a54803a1e07a99485277b79d [file] [log] [blame]
library test;
import 'dart:async';
MyFuture foo() => new MyFuture<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}) => throw '';
dynamic noSuchMethod(invocation) => null;
}
void test() {}