mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
1dafaa0392
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker Cheung <[email protected]>
33 lines
333 B
JavaScript
33 lines
333 B
JavaScript
export class C1 {
|
|
p = await (0);
|
|
}
|
|
|
|
await (0);
|
|
|
|
async function foo() {
|
|
function bar(x = await (2)) {}
|
|
}
|
|
|
|
export class C2 {
|
|
p = await 0;
|
|
}
|
|
|
|
function foo(promise) { await (promise); }
|
|
|
|
function a() {
|
|
return await (1)
|
|
}
|
|
|
|
() => { await (x) };
|
|
|
|
function foo() {
|
|
await
|
|
(foo);
|
|
}
|
|
|
|
export class C {
|
|
p = await (0);
|
|
}
|
|
|
|
await (0);
|