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