TypeScript/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper.js
Ron Buckton 711b4e778b
Indirect calls for imported functions (#44624)
* Indirect calls for imported functions

* Fix unit tests
2021-06-21 19:51:13 -07:00

24 lines
549 B
TypeScript

//// [tests/cases/compiler/taggedTemplateWithoutDeclaredHelper.ts] ////
//// [foo.ts]
function id<T>(x: T) {
return x;
}
export const result = id `hello world`;
//// [index.d.ts]
export { };
//// [foo.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.result = void 0;
var tslib_1 = require("tslib");
function id(x) {
return x;
}
exports.result = id(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["hello world"], ["hello world"])));
var templateObject_1;