OLD | NEW |
(Empty) | |
| 1 library test; |
| 2 import self as self; |
| 3 import "dart:core" as core; |
| 4 |
| 5 static method test() → void { |
| 6 core::List<core::int> o; |
| 7 core::int y = o.{core::Iterable::fold}<core::int>(0, (core::int x, core::int y
) → core::int => x.{core::num::+}(y)); |
| 8 dynamic z = o.{core::Iterable::fold}<dynamic>(0, (dynamic x, core::int y) → dy
namic => x.+(y)); |
| 9 y = z; |
| 10 } |
| 11 static method functionExpressionInvocation() → void { |
| 12 core::List<core::int> o; |
| 13 core::int y = o.{core::Iterable::fold}.call<core::int>(0, (core::int x, core::
int y) → core::int => x.{core::num::+}(y)); |
| 14 dynamic z = o.{core::Iterable::fold}.call<dynamic>(0, (dynamic x, core::int y)
→ dynamic => x.+(y)); |
| 15 y = z; |
| 16 } |
| 17 static method main() → dynamic {} |
OLD | NEW |