List bootstrap() { return [new Foo()]; } typedef B A2B(A x); A2B id(A2B f) => f; class Foo { } void main() { print(bootstrap()[0]); }