{"size": 2467, "ext": "js", "max_stars_repo_path": "crates/swc/tests/tsc-references/templateLiteralTypes2_es5.1.normal.js", "max_stars_repo_name": "mengxy/swc", "max_stars_repo_stars_event_min_datetime": "2017-04-01T04:06:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T23:11:05.000Z", "max_issues_repo_path": "tests/tsc-references/types/literal/templateLiteralTypes2/input.ts/es5.1.normal/output.js", "max_issues_repo_name": "sventschui/swc", "max_issues_repo_issues_event_min_datetime": "2018-01-14T05:54:44.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T15:48:40.000Z", "max_forks_repo_path": "tests/tsc-references/types/literal/templateLiteralTypes2/input.ts/es5.1.normal/output.js", "max_forks_repo_name": "sventschui/swc", "max_forks_repo_forks_event_min_datetime": "2018-01-14T05:15:43.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-30T11:29:42.000Z"}
{"max_stars_count": 21008, "max_issues_count": 2309, "max_forks_count": 768, "avg_line_length": 33.3378378378, "max_line_length": 107, "alphanum_fraction": 0.5451965951}
// @strict: true
// @declaration: true
function ft1(s, n, u, t) {
    var c1 = "abc".concat(s); // `abc${string}`
    var c2 = "abc".concat(n); // `abc${number}`
    var c3 = "abc".concat(u); // "abcfoo" | "abcbar" | "abcbaz"
    var c4 = "abc".concat(t); // `abc${T}
    var d1 = "abc".concat(s);
    var d2 = "abc".concat(n);
    var d3 = "abc".concat(u);
    var d4 = "abc".concat(t);
}
function ft2(s) {
    return "abc".concat(s);
}
function ft10(s) {
    var c1 = "abc".concat(s); // Widening type `abc${string}`
    var v1 = c1; // Type string
    var c2 = c1; // Widening type `abc${string}`
    var v2 = c2; // Type string
    var c3 = "abc".concat(s);
    var v3 = c3; // Type `abc${string}`
    var c4 = c1; // Type `abc${string}`
    var v4 = c4; // Type `abc${string}`
}
function ft11(s, cond) {
    var c1 = cond ? "foo".concat(s) : "bar".concat(s); // widening `foo${string}` | widening `bar${string}`
    var c2 = c1; // `foo${string}` | `bar${string}`
    var c3 = cond ? c1 : c2; // `foo${string}` | `bar${string}`
    var c4 = cond ? c3 : "baz".concat(s); // `foo${string}` | `bar${string}` | widening `baz${string}`
    var c5 = c4; // `foo${string}` | `bar${string}` | `baz${string}`
    var v1 = c1; // string
    var v2 = c2; // `foo${string}` | `bar${string}`
    var v3 = c3; // `foo${string}` | `bar${string}`
    var v4 = c4; // string
    var v5 = c5; // `foo${string}` | `bar${string}` | `baz${string}`
}
function ft12(s) {
    var c1 = "foo".concat(s);
    var v1 = c1;
    var c2 = "foo".concat(s);
    var v2 = c2;
    var c3 = "foo".concat(s);
    var v3 = c3;
    var c4 = "foo".concat(s);
    var v4 = c4;
    var c5 = "foo".concat(s);
    var v5 = c5;
}
function ft13(s, cond) {
    var x1 = widening("foo".concat(s));
    var x2 = widening(cond ? 'a' : "foo".concat(s));
    var y1 = nonWidening("foo".concat(s));
    var y2 = nonWidening(cond ? 'a' : "foo".concat(s));
}
function ft14(t) {
    var x1 = t;
    var x2 = t;
    var x3 = t;
    var x4 = t;
    var x6 = t;
}
var t1 = takesLiteral("foo.bar.baz"); // "baz"
var id2 = "foo.bar.baz";
var t2 = takesLiteral(id2); // "baz"
var t3 = takesLiteral("foo.bar.".concat(someString)); // string
var id4 = "foo.bar.".concat(someString);
var t4 = takesLiteral(id4); // string
var t5 = takesLiteral("foo.bar.".concat(someUnion)); // "abc" | "def" | "ghi"
// Repro from #41732
var pixelValue = 22;
var pixelString = "22px";
var pixelStringWithTemplate = "".concat(pixelValue, "px");
