OLD | NEW |
1 library; | 1 library; |
2 import self as self; | 2 import self as self; |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 | 4 |
5 static method foo(core::int x, core::int y) → core::int { | 5 static method foo(core::int x, core::int y) → core::int { |
6 core::int z = x.{core::num::+}(y); | 6 core::int z = x.{core::num::+}(y); |
7 return z.{core::int::<<}(4); | 7 return z.{core::int::<<}(4); |
8 } | 8 } |
9 static method loop(core::List<dynamic> xs) → void { | 9 static method loop(core::List<dynamic> xs) → void { |
10 core::int _ = xs.{core::List::length}; | 10 core::int _ = xs.{core::List::length}; |
11 for (core::int i = 0; i.{core::num::<}(xs.{core::List::length}); i = i.{core::
num::+}(1)) { | 11 for (core::int i = 0; i.{core::num::<}(xs.{core::List::length}); i = i.{core::
num::+}(1)) { |
12 } | 12 } |
13 } | 13 } |
14 static method main() → dynamic { | 14 static method main() → dynamic { |
15 self::foo(4, 5); | 15 self::foo(4, 5); |
16 self::foo(6, 7); | 16 self::foo(6, 7); |
17 self::loop(<dynamic>["dfg"]); | 17 self::loop(<dynamic>["dfg"]); |
18 } | 18 } |
OLD | NEW |