blob: ca061ba1e293bda83fd0834af551a5e2a9626ede [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}) => null;
dynamic noSuchMethod(invocation) => null;
}
void main() {}