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