blob: d6bb9b06266bc38d1abaf3e314044cff3f47d6a9 [file] [log] [blame]
library test;
import self as self;
import "dart:async" as asy;
import "dart:core" as core;
import "dart:math" as math;
static method main() dynamic {
() asy::Future<core::num> f = () asy::Future<core::num> async {
if(math::Random::•().{math::Random::nextBool}()) {
return 1;
}
else {
return 2.0;
}
};
asy::Future<core::num> g = f.call();
asy::Future<core::int> h = f.call();
}