TypeScript/tests/baselines/reference/templateStringInYieldKeyword.js
2015-04-09 22:57:13 -07:00

13 lines
372 B
TypeScript

//// [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";
}