blob: 3387e967f45a9a12de4a573b6037072b8f4963d8 [file] [log] [blame]
library test;
import self as self;
import "dart:core" as core;
import "dart:math" as math;
import "dart:math";
static method test2() dynamic {
core::List<core::num> o;
core::Iterable<core::num> y = o.{core::Iterable::map}<core::num>((core::num x) core::num {
if(math::Random::•().{math::Random::nextBool}()) {
return x.{core::num::toInt}().{core::num::+}(1);
}
else {
return x.{core::num::toDouble}();
}
});
core::Iterable<core::num> w = y;
core::Iterable<core::int> z = y as{TypeError} core::Iterable<core::int>;
}
static method main() dynamic {}