14 lines
203 B
TypeScript
14 lines
203 B
TypeScript
//// [generatorTypeCheck58.ts]
|
|
function* g() {
|
|
class C {
|
|
static x = yield 0;
|
|
};
|
|
}
|
|
|
|
//// [generatorTypeCheck58.js]
|
|
function* g() {
|
|
class C {
|
|
}
|
|
C.x = yield 0;
|
|
;
|
|
}
|