30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
=== tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression2_es5.ts ===
|
|
declare var a: boolean;
|
|
>a : Symbol(a, Decl(awaitBinaryExpression2_es5.ts, 0, 11))
|
|
|
|
declare var p: Promise<boolean>;
|
|
>p : Symbol(p, Decl(awaitBinaryExpression2_es5.ts, 1, 11))
|
|
>Promise : Symbol(Promise, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
|
|
|
|
declare function before(): void;
|
|
>before : Symbol(before, Decl(awaitBinaryExpression2_es5.ts, 1, 32))
|
|
|
|
declare function after(): void;
|
|
>after : Symbol(after, Decl(awaitBinaryExpression2_es5.ts, 2, 32))
|
|
|
|
async function func(): Promise<void> {
|
|
>func : Symbol(func, Decl(awaitBinaryExpression2_es5.ts, 3, 31))
|
|
>Promise : Symbol(Promise, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
|
|
|
|
before();
|
|
>before : Symbol(before, Decl(awaitBinaryExpression2_es5.ts, 1, 32))
|
|
|
|
var b = await p && a;
|
|
>b : Symbol(b, Decl(awaitBinaryExpression2_es5.ts, 6, 7))
|
|
>p : Symbol(p, Decl(awaitBinaryExpression2_es5.ts, 1, 11))
|
|
>a : Symbol(a, Decl(awaitBinaryExpression2_es5.ts, 0, 11))
|
|
|
|
after();
|
|
>after : Symbol(after, Decl(awaitBinaryExpression2_es5.ts, 2, 32))
|
|
}
|