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