blob: a948218212633cac7ef656b3f32940bc8e01d81e [file] [log] [blame]
library test;
import 'dart:async';
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;
}
main() {}
void test(Future f) {}