12 lines
344 B
TypeScript
12 lines
344 B
TypeScript
//// [templateStringWithEmbeddedYieldKeyword.ts]
|
|
function* gen {
|
|
// Once this is supported, yield *must* be parenthesized.
|
|
var x = `abc${ yield 10 }def`;
|
|
}
|
|
|
|
|
|
//// [templateStringWithEmbeddedYieldKeyword.js]
|
|
function gen() {
|
|
// Once this is supported, yield *must* be parenthesized.
|
|
var x = "abc" + (yield 10) + "def";
|
|
}
|