TypeScript/tests/baselines/reference/templateStringInYieldKeyword.js

13 lines
372 B
TypeScript
Raw Normal View History

//// [templateStringInYieldKeyword.ts]
function* gen() {
// Once this is supported, the inner expression does not need to be parenthesized.
var x = yield `abc${ x }def`;
}
//// [templateStringInYieldKeyword.js]
function gen() {
// Once this is supported, the inner expression does not need to be parenthesized.
var x = yield "abc" + x + "def";
}