blob: 4bd869a5466e0abd8bed45ca55a6912d0a5917c0 [file] [log] [blame]
// @dart = 2.9
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() {}