blob: 1b0c6ac6f4342bfdb97a63b58676551658ea0a25 [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(MyFuture f) {}