2015-05-07 02:33:58 +02:00
|
|
|
//// [awaitCallExpression5_es6.ts]
|
|
|
|
declare var a: boolean;
|
|
|
|
declare var p: Promise<boolean>;
|
|
|
|
declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void;
|
|
|
|
declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; };
|
|
|
|
declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>;
|
|
|
|
declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>;
|
|
|
|
async function func(): Promise<void> {
|
|
|
|
"before";
|
|
|
|
var b = o.fn(a, a, a);
|
|
|
|
"after";
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [awaitCallExpression5_es6.js]
|
|
|
|
function func() {
|
2015-06-18 20:31:03 +02:00
|
|
|
return __awaiter([this, Promise], function* () {
|
2015-05-07 02:33:58 +02:00
|
|
|
"before";
|
|
|
|
var b = o.fn(a, a, a);
|
|
|
|
"after";
|
2015-06-18 20:31:03 +02:00
|
|
|
});
|
2015-05-07 02:33:58 +02:00
|
|
|
}
|