14 lines
180 B
TypeScript
14 lines
180 B
TypeScript
//// [YieldExpression12_es6.ts]
|
|
class C {
|
|
constructor() {
|
|
yield foo
|
|
}
|
|
}
|
|
|
|
//// [YieldExpression12_es6.js]
|
|
class C {
|
|
constructor() {
|
|
yield foo;
|
|
}
|
|
}
|