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

6 lines
136 B
TypeScript

// @target: ES6
function* gen() {
// Once this is supported, yield *must* be parenthesized.
var x = `abc${ yield 10 }def`;
}