Skip to content

Commit 9f3db7f

Browse files
Accepted baselines.
1 parent 4ec1643 commit 9f3db7f

28 files changed

+108
-136
lines changed

tests/baselines/reference/asOperator3.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ var c = 123 + 456 + " trailing";
2424
var d = "Hello " + 123 + " World";
2525
var e = "Hello";
2626
var f = 1 + (1 + " end of string");
27-
var g = tag(_a || (_a = __makeTemplateObject(["Hello ", " World"], ["Hello ", " World"])), 123);
28-
var h = tag(_b || (_b = __makeTemplateObject(["Hello"], ["Hello"])));
29-
var _a, _b;
27+
var g = tag(__makeTemplateObject(["Hello ", " World"], ["Hello ", " World"]), 123);
28+
var h = tag(__makeTemplateObject(["Hello"], ["Hello"]));

tests/baselines/reference/asOperatorASI.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ var Foo = /** @class */ (function () {
2626
}());
2727
// Example 1
2828
var x = 10;
29-
as(_a || (_a = __makeTemplateObject(["Hello world"], ["Hello world"]))); // should not error
29+
as(__makeTemplateObject(["Hello world"], ["Hello world"])); // should not error
3030
// Example 2
3131
var y = 20;
3232
as(Foo); // should emit
33-
var _a;

tests/baselines/reference/importHelpers.js

100755100644
+1-2
Original file line numberDiff line numberDiff line change
@@ -146,5 +146,4 @@ var C = /** @class */ (function () {
146146
function id(x) {
147147
return x;
148148
}
149-
var result = id(_a || (_a = __makeTemplateObject(["hello world"], ["hello world"])));
150-
var _a;
149+
var result = id(__makeTemplateObject(["hello world"], ["hello world"]));

tests/baselines/reference/taggedTemplateStringsHexadecimalEscapes.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ function f() {
1818
args[_i] = arguments[_i];
1919
}
2020
}
21-
f(_a || (_a = __makeTemplateObject(["\r", "\n"], ["\\x0D", "\\x0A"])), "Interrupted CRLF");
22-
var _a;
21+
f(__makeTemplateObject(["\r", "\n"], ["\\x0D", "\\x0A"]), "Interrupted CRLF");

tests/baselines/reference/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ function f() {
1919
x[_i] = arguments[_i];
2020
}
2121
}
22-
f(_a || (_a = __makeTemplateObject(["0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n"], ["0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n"])));
23-
var _a;
22+
f(__makeTemplateObject(["0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n"], ["0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n"]));

tests/baselines/reference/taggedTemplateStringsTypeArgumentInference.js

+28-29
Original file line numberDiff line numberDiff line change
@@ -101,65 +101,64 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
101101
};
102102
// Generic tag with one parameter
103103
function noParams(n) { }
104-
noParams(_a || (_a = __makeTemplateObject([""], [""])));
104+
noParams(__makeTemplateObject([""], [""]));
105105
// Generic tag with parameter which does not use type parameter
106106
function noGenericParams(n) { }
107-
noGenericParams(_b || (_b = __makeTemplateObject([""], [""])));
107+
noGenericParams(__makeTemplateObject([""], [""]));
108108
// Generic tag with multiple type parameters and only one used in parameter type annotation
109109
function someGenerics1a(n, m) { }
110-
someGenerics1a(_c || (_c = __makeTemplateObject(["", ""], ["", ""])), 3);
110+
someGenerics1a(__makeTemplateObject(["", ""], ["", ""]), 3);
111111
function someGenerics1b(n, m) { }
112-
someGenerics1b(_d || (_d = __makeTemplateObject(["", ""], ["", ""])), 3);
112+
someGenerics1b(__makeTemplateObject(["", ""], ["", ""]), 3);
113113
// Generic tag with argument of function type whose parameter is of type parameter type
114114
function someGenerics2a(strs, n) { }
115-
someGenerics2a(_e || (_e = __makeTemplateObject(["", ""], ["", ""])), function (n) { return n; });
115+
someGenerics2a(__makeTemplateObject(["", ""], ["", ""]), function (n) { return n; });
116116
function someGenerics2b(strs, n) { }
117-
someGenerics2b(_f || (_f = __makeTemplateObject(["", ""], ["", ""])), function (n, x) { return n; });
117+
someGenerics2b(__makeTemplateObject(["", ""], ["", ""]), function (n, x) { return n; });
118118
// Generic tag with argument of function type whose parameter is not of type parameter type but body/return type uses type parameter
119119
function someGenerics3(strs, producer) { }
120-
someGenerics3(_g || (_g = __makeTemplateObject(["", ""], ["", ""])), function () { return ''; });
121-
someGenerics3(_h || (_h = __makeTemplateObject(["", ""], ["", ""])), function () { return undefined; });
122-
someGenerics3(_j || (_j = __makeTemplateObject(["", ""], ["", ""])), function () { return 3; });
120+
someGenerics3(__makeTemplateObject(["", ""], ["", ""]), function () { return ''; });
121+
someGenerics3(__makeTemplateObject(["", ""], ["", ""]), function () { return undefined; });
122+
someGenerics3(__makeTemplateObject(["", ""], ["", ""]), function () { return 3; });
123123
// 2 parameter generic tag with argument 1 of type parameter type and argument 2 of function type whose parameter is of type parameter type
124124
function someGenerics4(strs, n, f) { }
125-
someGenerics4(_k || (_k = __makeTemplateObject(["", "", ""], ["", "", ""])), 4, function () { return null; });
126-
someGenerics4(_l || (_l = __makeTemplateObject(["", "", ""], ["", "", ""])), '', function () { return 3; });
127-
someGenerics4(_m || (_m = __makeTemplateObject(["", "", ""], ["", "", ""])), null, null);
125+
someGenerics4(__makeTemplateObject(["", "", ""], ["", "", ""]), 4, function () { return null; });
126+
someGenerics4(__makeTemplateObject(["", "", ""], ["", "", ""]), '', function () { return 3; });
127+
someGenerics4(__makeTemplateObject(["", "", ""], ["", "", ""]), null, null);
128128
// 2 parameter generic tag with argument 2 of type parameter type and argument 1 of function type whose parameter is of type parameter type
129129
function someGenerics5(strs, n, f) { }
130-
someGenerics5(_o || (_o = __makeTemplateObject(["", " ", ""], ["", " ", ""])), 4, function () { return null; });
131-
someGenerics5(_p || (_p = __makeTemplateObject(["", "", ""], ["", "", ""])), '', function () { return 3; });
132-
someGenerics5(_q || (_q = __makeTemplateObject(["", "", ""], ["", "", ""])), null, null);
130+
someGenerics5(__makeTemplateObject(["", " ", ""], ["", " ", ""]), 4, function () { return null; });
131+
someGenerics5(__makeTemplateObject(["", "", ""], ["", "", ""]), '', function () { return 3; });
132+
someGenerics5(__makeTemplateObject(["", "", ""], ["", "", ""]), null, null);
133133
// Generic tag with multiple arguments of function types that each have parameters of the same generic type
134134
function someGenerics6(strs, a, b, c) { }
135-
someGenerics6(_r || (_r = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), function (n) { return n; }, function (n) { return n; }, function (n) { return n; });
136-
someGenerics6(_s || (_s = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), function (n) { return n; }, function (n) { return n; }, function (n) { return n; });
137-
someGenerics6(_t || (_t = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), function (n) { return n; }, function (n) { return n; }, function (n) { return n; });
135+
someGenerics6(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), function (n) { return n; }, function (n) { return n; }, function (n) { return n; });
136+
someGenerics6(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), function (n) { return n; }, function (n) { return n; }, function (n) { return n; });
137+
someGenerics6(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), function (n) { return n; }, function (n) { return n; }, function (n) { return n; });
138138
// Generic tag with multiple arguments of function types that each have parameters of different generic type
139139
function someGenerics7(strs, a, b, c) { }
140-
someGenerics7(_u || (_u = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), function (n) { return n; }, function (n) { return n; }, function (n) { return n; });
141-
someGenerics7(_v || (_v = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), function (n) { return n; }, function (n) { return n; }, function (n) { return n; });
142-
someGenerics7(_w || (_w = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), function (n) { return n; }, function (n) { return n; }, function (n) { return n; });
140+
someGenerics7(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), function (n) { return n; }, function (n) { return n; }, function (n) { return n; });
141+
someGenerics7(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), function (n) { return n; }, function (n) { return n; }, function (n) { return n; });
142+
someGenerics7(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), function (n) { return n; }, function (n) { return n; }, function (n) { return n; });
143143
// Generic tag with argument of generic function type
144144
function someGenerics8(strs, n) { return n; }
145-
var x = someGenerics8(_x || (_x = __makeTemplateObject(["", ""], ["", ""])), someGenerics7);
146-
x(_y || (_y = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), null, null, null);
145+
var x = someGenerics8(__makeTemplateObject(["", ""], ["", ""]), someGenerics7);
146+
x(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), null, null, null);
147147
// Generic tag with multiple parameters of generic type passed arguments with no best common type
148148
function someGenerics9(strs, a, b, c) {
149149
return null;
150150
}
151-
var a9a = someGenerics9(_z || (_z = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), '', 0, []);
151+
var a9a = someGenerics9(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), '', 0, []);
152152
var a9a;
153-
var a9e = someGenerics9(_0 || (_0 = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), undefined, { x: 6, z: new Date() }, { x: 6, y: '' });
153+
var a9e = someGenerics9(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), undefined, { x: 6, z: new Date() }, { x: 6, y: '' });
154154
var a9e;
155155
// Generic tag with multiple parameters of generic type passed arguments with a single best common type
156-
var a9d = someGenerics9(_1 || (_1 = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), { x: 3 }, { x: 6 }, { x: 6 });
156+
var a9d = someGenerics9(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), { x: 3 }, { x: 6 }, { x: 6 });
157157
var a9d;
158158
// Generic tag with multiple parameters of generic type where one argument is of type 'any'
159159
var anyVar;
160-
var a = someGenerics9(_2 || (_2 = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), 7, anyVar, 4);
160+
var a = someGenerics9(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), 7, anyVar, 4);
161161
var a;
162162
// Generic tag with multiple parameters of generic type where one argument is [] and the other is not 'any'
163-
var arr = someGenerics9(_3 || (_3 = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), [], null, undefined);
163+
var arr = someGenerics9(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), [], null, undefined);
164164
var arr;
165-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;

tests/baselines/reference/taggedTemplateStringsWithIncompatibleTypedTags.js

+9-10
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,14 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4242
return cooked;
4343
};
4444
var f;
45-
f(_a || (_a = __makeTemplateObject(["abc"], ["abc"])));
46-
f(_b || (_b = __makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"])), 1, 2);
47-
f(_c || (_c = __makeTemplateObject(["abc"], ["abc"]))).member;
48-
f(_d || (_d = __makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"])), 1, 2).member;
49-
f(_e || (_e = __makeTemplateObject(["abc"], ["abc"])))["member"];
50-
f(_f || (_f = __makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"])), 1, 2)["member"];
51-
f(_g || (_g = __makeTemplateObject(["abc"], ["abc"])))[0].member(_h || (_h = __makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"])), 1, 2);
52-
f(_j || (_j = __makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"])), 1, 2)["member"].member(_k || (_k = __makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"])), 1, 2);
53-
f(_l || (_l = __makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"])), true, true)["member"].member(_m || (_m = __makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"])), 1, 2);
45+
f(__makeTemplateObject(["abc"], ["abc"]));
46+
f(__makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"]), 1, 2);
47+
f(__makeTemplateObject(["abc"], ["abc"])).member;
48+
f(__makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"]), 1, 2).member;
49+
f(__makeTemplateObject(["abc"], ["abc"]))["member"];
50+
f(__makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"]), 1, 2)["member"];
51+
f(__makeTemplateObject(["abc"], ["abc"]))[0].member(__makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"]), 1, 2);
52+
f(__makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"]), 1, 2)["member"].member(__makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"]), 1, 2);
53+
f(__makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"]), true, true)["member"].member(__makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"]), 1, 2);
5454
f.thisIsNotATag("abc");
5555
f.thisIsNotATag("abc" + 1 + "def" + 2 + "ghi");
56-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;

tests/baselines/reference/taggedTemplateStringsWithManyCallAndMemberExpressions.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
2424
return cooked;
2525
};
2626
var f;
27-
var x = new new new (f(_a || (_a = __makeTemplateObject(["abc", "def"], ["abc", "def"])), 0).member)("hello")(42) === true;
28-
var _a;
27+
var x = new new new (f(__makeTemplateObject(["abc", "def"], ["abc", "def"]), 0).member)("hello")(42) === true;

tests/baselines/reference/taggedTemplateStringsWithMultilineTemplate.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ function f() {
2121
args[_i] = arguments[_i];
2222
}
2323
}
24-
f(_a || (_a = __makeTemplateObject(["\n\n"], ["\n\\\n\n"])));
25-
var _a;
24+
f(__makeTemplateObject(["\n\n"], ["\n\\\n\n"]));

tests/baselines/reference/taggedTemplateStringsWithOverloadResolution1.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ var c = foo([], 1, 2); // boolean
4343
var d = foo([], 1, true); // boolean (with error)
4444
var e = foo([], 1, "2"); // {}
4545
var f = foo([], 1, 2, 3); // any (with error)
46-
var u = foo(_a || (_a = __makeTemplateObject([""], [""]))); // number
47-
var v = foo(_b || (_b = __makeTemplateObject(["", ""], ["", ""])), 1); // string
48-
var w = foo(_c || (_c = __makeTemplateObject(["", "", ""], ["", "", ""])), 1, 2); // boolean
49-
var x = foo(_d || (_d = __makeTemplateObject(["", "", ""], ["", "", ""])), 1, true); // boolean (with error)
50-
var y = foo(_e || (_e = __makeTemplateObject(["", "", ""], ["", "", ""])), 1, "2"); // {}
51-
var z = foo(_f || (_f = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), 1, 2, 3); // any (with error)
52-
var _a, _b, _c, _d, _e, _f;
46+
var u = foo(__makeTemplateObject([""], [""])); // number
47+
var v = foo(__makeTemplateObject(["", ""], ["", ""]), 1); // string
48+
var w = foo(__makeTemplateObject(["", "", ""], ["", "", ""]), 1, 2); // boolean
49+
var x = foo(__makeTemplateObject(["", "", ""], ["", "", ""]), 1, true); // boolean (with error)
50+
var y = foo(__makeTemplateObject(["", "", ""], ["", "", ""]), 1, "2"); // {}
51+
var z = foo(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), 1, 2, 3); // any (with error)

tests/baselines/reference/taggedTemplateStringsWithOverloadResolution2.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function foo1() {
3232
}
3333
return undefined;
3434
}
35-
var a = foo1(_a || (_a = __makeTemplateObject(["", ""], ["", ""])), 1);
35+
var a = foo1(__makeTemplateObject(["", ""], ["", ""]), 1);
3636
var b = foo1([], 1);
3737
function foo2() {
3838
var stuff = [];
@@ -41,6 +41,5 @@ function foo2() {
4141
}
4242
return undefined;
4343
}
44-
var c = foo2(_b || (_b = __makeTemplateObject(["", ""], ["", ""])), 1);
44+
var c = foo2(__makeTemplateObject(["", ""], ["", ""]), 1);
4545
var d = foo2([], 1);
46-
var _a, _b;

tests/baselines/reference/taggedTemplateStringsWithOverloadResolution3.js

+22-23
Original file line numberDiff line numberDiff line change
@@ -81,41 +81,40 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
8181
return cooked;
8282
};
8383
function fn1() { return null; }
84-
var s = fn1(_a || (_a = __makeTemplateObject(["", ""], ["", ""])), undefined);
84+
var s = fn1(__makeTemplateObject(["", ""], ["", ""]), undefined);
8585
// No candidate overloads found
86-
fn1(_b || (_b = __makeTemplateObject(["", ""], ["", ""])), {}); // Error
86+
fn1(__makeTemplateObject(["", ""], ["", ""]), {}); // Error
8787
function fn2() { return undefined; }
88-
var d1 = fn2(_c || (_c = __makeTemplateObject(["", "", ""], ["", "", ""])), 0, undefined); // contextually typed
89-
var d2 = fn2(_d || (_d = __makeTemplateObject(["", "", ""], ["", "", ""])), 0, undefined); // any
88+
var d1 = fn2(__makeTemplateObject(["", "", ""], ["", "", ""]), 0, undefined); // contextually typed
89+
var d2 = fn2(__makeTemplateObject(["", "", ""], ["", "", ""]), 0, undefined); // any
9090
d1.foo(); // error
9191
d2(); // no error (typed as any)
9292
// Generic and non-generic overload where generic overload is the only candidate
93-
fn2(_e || (_e = __makeTemplateObject(["", "", ""], ["", "", ""])), 0, ''); // OK
93+
fn2(__makeTemplateObject(["", "", ""], ["", "", ""]), 0, ''); // OK
9494
// Generic and non-generic overload where non-generic overload is the only candidate
95-
fn2(_f || (_f = __makeTemplateObject(["", "", ""], ["", "", ""])), '', 0); // OK
95+
fn2(__makeTemplateObject(["", "", ""], ["", "", ""]), '', 0); // OK
9696
function fn3() { return null; }
97-
var s = fn3(_g || (_g = __makeTemplateObject(["", ""], ["", ""])), 3);
98-
var s = fn3(_h || (_h = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), '', 3, '');
99-
var n = fn3(_j || (_j = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), 5, 5, 5);
97+
var s = fn3(__makeTemplateObject(["", ""], ["", ""]), 3);
98+
var s = fn3(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), '', 3, '');
99+
var n = fn3(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), 5, 5, 5);
100100
var n;
101101
// Generic overloads with differing arity tagging with arguments matching each overload type parameter count
102-
var s = fn3(_k || (_k = __makeTemplateObject(["", ""], ["", ""])), 4);
103-
var s = fn3(_l || (_l = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), '', '', '');
104-
var n = fn3(_m || (_m = __makeTemplateObject(["", "", "", ""], ["", "", "", ""])), '', '', 3);
102+
var s = fn3(__makeTemplateObject(["", ""], ["", ""]), 4);
103+
var s = fn3(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), '', '', '');
104+
var n = fn3(__makeTemplateObject(["", "", "", ""], ["", "", "", ""]), '', '', 3);
105105
// Generic overloads with differing arity tagging with argument count that doesn't match any overload
106-
fn3(_o || (_o = __makeTemplateObject([""], [""]))); // Error
106+
fn3(__makeTemplateObject([""], [""])); // Error
107107
function fn4() { }
108108
// Generic overloads with constraints tagged with types that satisfy the constraints
109-
fn4(_p || (_p = __makeTemplateObject(["", "", ""], ["", "", ""])), '', 3);
110-
fn4(_q || (_q = __makeTemplateObject(["", "", ""], ["", "", ""])), 3, '');
111-
fn4(_r || (_r = __makeTemplateObject(["", "", ""], ["", "", ""])), 3, undefined);
112-
fn4(_s || (_s = __makeTemplateObject(["", "", ""], ["", "", ""])), '', null);
109+
fn4(__makeTemplateObject(["", "", ""], ["", "", ""]), '', 3);
110+
fn4(__makeTemplateObject(["", "", ""], ["", "", ""]), 3, '');
111+
fn4(__makeTemplateObject(["", "", ""], ["", "", ""]), 3, undefined);
112+
fn4(__makeTemplateObject(["", "", ""], ["", "", ""]), '', null);
113113
// Generic overloads with constraints called with type arguments that do not satisfy the constraints
114-
fn4(_t || (_t = __makeTemplateObject(["", "", ""], ["", "", ""])), null, null); // Error
114+
fn4(__makeTemplateObject(["", "", ""], ["", "", ""]), null, null); // Error
115115
// Generic overloads with constraints called without type arguments but with types that do not satisfy the constraints
116-
fn4(_u || (_u = __makeTemplateObject(["", "", ""], ["", "", ""])), true, null);
117-
fn4(_v || (_v = __makeTemplateObject(["", "", ""], ["", "", ""])), null, true);
116+
fn4(__makeTemplateObject(["", "", ""], ["", "", ""]), true, null);
117+
fn4(__makeTemplateObject(["", "", ""], ["", "", ""]), null, true);
118118
function fn5() { return undefined; }
119-
fn5(_w || (_w = __makeTemplateObject(["", ""], ["", ""])), function (n) { return n.toFixed(); }); // will error; 'n' should have type 'string'.
120-
fn5(_x || (_x = __makeTemplateObject(["", ""], ["", ""])), function (n) { return n.substr(0); });
121-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
119+
fn5(__makeTemplateObject(["", ""], ["", ""]), function (n) { return n.toFixed(); }); // will error; 'n' should have type 'string'.
120+
fn5(__makeTemplateObject(["", ""], ["", ""]), function (n) { return n.substr(0); });

tests/baselines/reference/taggedTemplateStringsWithTagNamedDeclare.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ function declare(x) {
1818
ys[_i - 1] = arguments[_i];
1919
}
2020
}
21-
declare(_a || (_a = __makeTemplateObject(["Hello ", " world!"], ["Hello ", " world!"])), 0);
22-
var _a;
21+
declare(__makeTemplateObject(["Hello ", " world!"], ["Hello ", " world!"]), 0);

0 commit comments

Comments
 (0)