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 dynamic z = x.+(y); | 6 dynamic z = x.+(y); |
7 return z.<<(4); | 7 return z.<<(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.length; | 10 core::int _ = xs.length; |
11 for (core::int i = 0; i.<(xs.length); i = i.+(1)) { | 11 for (core::int i = 0; i.<(xs.length); i = i.+(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 |