4289a9967b
Change-Id: I56ff4d4391b7a22d709dc60b696646895928e34c Reviewed-on: https://dart-review.googlesource.com/46100 Reviewed-by: Peter von der Ahé <ahe@google.com> Commit-Queue: Samir Jindel <sjindel@google.com>
19 lines
491 B
Plaintext
19 lines
491 B
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method foo(core::int x, core::int y) → core::int {
|
|
core::int z = x.{core::num::+}(y);
|
|
return z.{core::int::<<}(4);
|
|
}
|
|
static method loop(core::List<dynamic> xs) → void {
|
|
core::int _ = xs.{core::List::length};
|
|
for (core::int i = 0; i.{core::num::<}(xs.{core::List::length}); i = i.{core::num::+}(1)) {
|
|
}
|
|
}
|
|
static method main() → dynamic {
|
|
self::foo(4, 5);
|
|
self::foo(6, 7);
|
|
self::loop(<dynamic>["dfg"]);
|
|
}
|