| OLD | NEW |
| (Empty) | |
| 1 library test; |
| 2 import self as self; |
| 3 import "dart:core" as core; |
| 4 import "dart:math" as math; |
| 5 |
| 6 static method printInt(core::int x) → void |
| 7 return core::print(x); |
| 8 static method printDouble(core::double x) → void |
| 9 return core::print(x); |
| 10 static method myMax(core::num x, core::num y) → core::num |
| 11 return math::max(x, y); |
| 12 static method f() → dynamic { |
| 13 self::printInt(math::max(1, 2)); |
| 14 self::printInt(math::min(1, 2)); |
| 15 self::printDouble(math::max(1.0, 2.0)); |
| 16 self::printDouble(math::min(1.0, 2.0)); |
| 17 self::printInt(self::myMax(1, 2)); |
| 18 self::printInt(self::myMax(1, 2) as core::int); |
| 19 self::printInt(math::max(1, 2.0)); |
| 20 self::printInt(math::min(1, 2.0)); |
| 21 self::printDouble(math::max(1, 2.0)); |
| 22 self::printDouble(math::min(1, 2.0)); |
| 23 self::printInt(math::min("hi", "there")); |
| 24 } |
| 25 static method main() → dynamic {} |
| OLD | NEW |