blob: 38548447ecd893abdf18a69c227d349fd14c749b [file] [log] [blame]
library;
import self as self;
import "dart:async" as asy;
import "dart:core" as core;
static method bar() asy::Future<core::int> {
return asy::Future::value<core::int>(123);
}
static method foo1() asy::Future<core::int> async /* emittedValueType= core::int */ {
return await self::bar();
}
static method foo2(core::bool x) asy::Future<core::int> async /* emittedValueType= core::int */ {
if(x)
return await asy::Future::value<core::int>(345);
return await self::bar();
}
static method foo3(core::bool x) asy::Future<core::int> async /* emittedValueType= core::int */ {
if(x)
return 234;
return await asy::Future::value<core::int>(123);
}
static method main() void {
self::foo1();
self::foo2(true);
self::foo3(true);
}