18 lines
282 B
TypeScript
18 lines
282 B
TypeScript
//// [generatorTypeCheck56.ts]
|
|
function* g() {
|
|
var x = class C {
|
|
*[yield 0]() {
|
|
yield 0;
|
|
}
|
|
};
|
|
}
|
|
|
|
//// [generatorTypeCheck56.js]
|
|
function* g() {
|
|
var x = class C {
|
|
*[yield 0]() {
|
|
yield 0;
|
|
}
|
|
}
|
|
;
|
|
}
|