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 test2() → dynamic { |
| 7 core::List<core::num> o; |
| 8 core::Iterable<core::num> y = o.{core::Iterable::map}<core::num>((core::num x)
→ core::num { |
| 9 if(math::Random::•().{math::Random::nextBool}()) { |
| 10 return x.{core::num::toInt}().{core::num::+}(1); |
| 11 } |
| 12 else { |
| 13 return x.{core::num::toDouble}(); |
| 14 } |
| 15 }); |
| 16 core::Iterable<core::num> w = y; |
| 17 core::Iterable<core::int> z = y; |
| 18 } |
| 19 static method main() → dynamic {} |
OLD | NEW |