blob: 1f0bcd05e0d2de5ec9d9fa4e98c2f7046ed0ee90 [file] [log] [blame]
// @dart = 2.9
class Bar {
Foo<Baz> qux;
Future<void> quuz() =>
qux().then((baz) => corge(baz)).then((grault) => garply(grault));
Grault corge(Baz baz) => null;
void garply(Grault grault) {}
}
class Baz {}
class Foo<T> {
Foo(this.quux, this.t);
Future<T> call() => quux().then<T>((_) => t);
T t;
final Future<dynamic> Function() quux;
}
class Grault {}
main() {}