Skip to content

Commit e7798c0

Browse files
Accepted baselines.
1 parent 0f83fc1 commit e7798c0

6 files changed

+75
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//// [taggedTemplateWithConstructableTag01.ts]
2+
class CtorTag { }
3+
4+
CtorTag `Hello world!`;
5+
6+
//// [taggedTemplateWithConstructableTag01.js]
7+
var CtorTag = (function () {
8+
function CtorTag() {
9+
}
10+
return CtorTag;
11+
}());
12+
(_a = ["Hello world!"], _a.raw = ["Hello world!"], CtorTag(_a));
13+
var _a;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
=== tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag01.ts ===
2+
class CtorTag { }
3+
>CtorTag : Symbol(CtorTag, Decl(taggedTemplateWithConstructableTag01.ts, 0, 0))
4+
5+
CtorTag `Hello world!`;
6+
>CtorTag : Symbol(CtorTag, Decl(taggedTemplateWithConstructableTag01.ts, 0, 0))
7+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
=== tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag01.ts ===
2+
class CtorTag { }
3+
>CtorTag : CtorTag
4+
5+
CtorTag `Hello world!`;
6+
>CtorTag `Hello world!` : any
7+
>CtorTag : typeof CtorTag
8+
>`Hello world!` : string
9+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//// [taggedTemplateWithConstructableTag02.ts]
2+
interface I {
3+
new (...args: any[]): string;
4+
new (): number;
5+
}
6+
var tag: I;
7+
tag `Hello world!`;
8+
9+
//// [taggedTemplateWithConstructableTag02.js]
10+
var tag;
11+
(_a = ["Hello world!"], _a.raw = ["Hello world!"], tag(_a));
12+
var _a;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
=== tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag02.ts ===
2+
interface I {
3+
>I : Symbol(I, Decl(taggedTemplateWithConstructableTag02.ts, 0, 0))
4+
5+
new (...args: any[]): string;
6+
>args : Symbol(args, Decl(taggedTemplateWithConstructableTag02.ts, 1, 9))
7+
8+
new (): number;
9+
}
10+
var tag: I;
11+
>tag : Symbol(tag, Decl(taggedTemplateWithConstructableTag02.ts, 4, 3))
12+
>I : Symbol(I, Decl(taggedTemplateWithConstructableTag02.ts, 0, 0))
13+
14+
tag `Hello world!`;
15+
>tag : Symbol(tag, Decl(taggedTemplateWithConstructableTag02.ts, 4, 3))
16+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
=== tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag02.ts ===
2+
interface I {
3+
>I : I
4+
5+
new (...args: any[]): string;
6+
>args : any[]
7+
8+
new (): number;
9+
}
10+
var tag: I;
11+
>tag : I
12+
>I : I
13+
14+
tag `Hello world!`;
15+
>tag `Hello world!` : any
16+
>tag : I
17+
>`Hello world!` : string
18+

0 commit comments

Comments
 (0)