mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
22 lines
326 B
TypeScript
22 lines
326 B
TypeScript
|
// @noEmit: true
|
||
|
// @allowJs: true
|
||
|
// @checkJs: true
|
||
|
// @noImplicitAny: true
|
||
|
// @lib: esnext
|
||
|
// @Filename: bug25149.js
|
||
|
function* f() {
|
||
|
var o
|
||
|
while (true) {
|
||
|
o = yield o
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// @Filename: alsoFails.ts
|
||
|
// fails in Typescript too
|
||
|
function* g() {
|
||
|
var o = []
|
||
|
while (true) {
|
||
|
o = yield* o
|
||
|
}
|
||
|
}
|