text: //// [taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.ts]
  
  
  function foo(...rest: any[]) {
  }
  
  foo `${function (x: number) { x = "bad"; } }`;
  
  //// [taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.js]
  function foo() {
      var rest = [];
      for (var _i = 0; _i < arguments.length; _i++) {
          rest[_i] = arguments[_i];
      }
  }
  (_a = ["", ""], _a.raw = ["", ""], foo(_a, function (x) { x = "bad"; }));
  var _a;
  