blob: 750b63f401d3e5e3c5b20a79e49f7a0d6f7678ae [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 foo() => new MyFuture<int>.value(1);