swc/crates/swc_ecma_parser/tests/tsc/templateStringInYieldKeyword.ts

6 lines
160 B
TypeScript

// @target: es6
function* gen() {
// Once this is supported, the inner expression does not need to be parenthesized.
var x = yield `abc${ x }def`;
}