blob: 4d34d7c305caa0e6648cc7636e617f926b467e9c [file] [log] [blame]
library test;
import 'dart:async';
class MyFuture<T> implements Future<T> {
MyFuture() {}
MyFuture.value(T x) {}
dynamic noSuchMethod(invocation) => null;
MyFuture<S> then<S>(FutureOr<S> f(T x), {Function? onError}) => throw '';
}
void test(MyFuture<bool> f) {}
main() {}