mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
30 lines
584 B
TypeScript
30 lines
584 B
TypeScript
// @target: es2015
|
|
// @lib: esnext
|
|
// @filename: F1.ts
|
|
const f1 = async function * () {
|
|
}
|
|
// @filename: F2.ts
|
|
const f2 = async function * () {
|
|
const x = yield;
|
|
}
|
|
// @filename: F3.ts
|
|
const f3 = async function * () {
|
|
const x = yield 1;
|
|
}
|
|
// @filename: F4.ts
|
|
const f4 = async function * () {
|
|
const x = yield* [1];
|
|
}
|
|
// @filename: F5.ts
|
|
const f5 = async function * () {
|
|
const x = yield* (async function*() { yield 1; })();
|
|
}
|
|
// @filename: F6.ts
|
|
const f6 = async function * () {
|
|
const x = await 1;
|
|
}
|
|
// @filename: F7.ts
|
|
const f7 = async function * () {
|
|
return 1;
|
|
}
|