blob: 71707577f7bb590e21c7f6d74ddfa5f8c53b5b8b [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}) => null;
}
void main() {}
MyFuture foo() => new MyFuture<int>.value(1);