2015-05-07 02:33:58 +02:00
|
|
|
//// [awaitBinaryExpression4_es6.ts]
|
|
|
|
declare var a: boolean;
|
|
|
|
declare var p: Promise<boolean>;
|
|
|
|
async function func(): Promise<void> {
|
|
|
|
"before";
|
|
|
|
var b = await p, a;
|
|
|
|
"after";
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [awaitBinaryExpression4_es6.js]
|
|
|
|
function func() {
|
2015-06-04 21:08:09 +02:00
|
|
|
return __awaiter(function* () {
|
2015-05-07 02:33:58 +02:00
|
|
|
"before";
|
|
|
|
var b = yield p, a;
|
|
|
|
"after";
|
2015-06-10 02:08:15 +02:00
|
|
|
},
|
|
|
|
this, void 0, Promise);
|
2015-05-07 02:33:58 +02:00
|
|
|
}
|