mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
19 lines
399 B
TypeScript
19 lines
399 B
TypeScript
// @target: es2019
|
|
// @noTypesAndSymbols: true
|
|
async function* test(x: Promise<string>) {
|
|
class C {
|
|
[await x] = await x;
|
|
static [await x] = await x;
|
|
|
|
[yield 1] = yield 2;
|
|
static [yield 3] = yield 4;
|
|
}
|
|
|
|
return class {
|
|
[await x] = await x;
|
|
static [await x] = await x;
|
|
|
|
[yield 1] = yield 2;
|
|
static [yield 3] = yield 4;
|
|
}
|
|
} |