2014-12-16 01:39:12 +01:00
|
|
|
//// [taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.ts]
|
|
|
|
|
|
|
|
function foo(...rest: any[]) {
|
|
|
|
}
|
|
|
|
|
|
|
|
foo `${function (x: number) { x = "bad"; } }`;
|
|
|
|
|
|
|
|
//// [taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.js]
|
2015-01-06 00:08:17 +01:00
|
|
|
function foo(...rest) {
|
2014-12-16 01:39:12 +01:00
|
|
|
}
|
2015-03-26 21:46:35 +01:00
|
|
|
foo `${function (x) { x = "bad"; }}`;
|