12 lines
340 B
TypeScript
12 lines
340 B
TypeScript
//// [taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.ts]
|
|
|
|
function foo(...rest: any[]) {
|
|
}
|
|
|
|
foo `${function (x: number) { x = "bad"; } }`;
|
|
|
|
//// [taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.js]
|
|
function foo(...rest) {
|
|
}
|
|
foo `${function (x) { x = "bad"; }}`;
|