| library; | |
| import self as self; | |
| import "dart:core" as core; | |
| static method foo() → core::int* { | |
| core::Function* f = (dynamic x) → dynamic => x; | |
| core::List<dynamic>* l = <core::String*>["bar"].{core::Iterable::map}<dynamic>(f as{TypeError} (core::String*) →* dynamic).{core::Iterable::toList}(); | |
| l.{core::List::add}(42); | |
| return l.{core::Iterable::first}.length as{TypeError,ForDynamic} core::int*; | |
| } | |
| static method main() → dynamic {} |