Accepted baselines.
This commit is contained in:
parent
0f83fc130e
commit
e7798c002e
6 changed files with 75 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
|||
//// [taggedTemplateWithConstructableTag01.ts]
|
||||
class CtorTag { }
|
||||
|
||||
CtorTag `Hello world!`;
|
||||
|
||||
//// [taggedTemplateWithConstructableTag01.js]
|
||||
var CtorTag = (function () {
|
||||
function CtorTag() {
|
||||
}
|
||||
return CtorTag;
|
||||
}());
|
||||
(_a = ["Hello world!"], _a.raw = ["Hello world!"], CtorTag(_a));
|
||||
var _a;
|
|
@ -0,0 +1,7 @@
|
|||
=== tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag01.ts ===
|
||||
class CtorTag { }
|
||||
>CtorTag : Symbol(CtorTag, Decl(taggedTemplateWithConstructableTag01.ts, 0, 0))
|
||||
|
||||
CtorTag `Hello world!`;
|
||||
>CtorTag : Symbol(CtorTag, Decl(taggedTemplateWithConstructableTag01.ts, 0, 0))
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
=== tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag01.ts ===
|
||||
class CtorTag { }
|
||||
>CtorTag : CtorTag
|
||||
|
||||
CtorTag `Hello world!`;
|
||||
>CtorTag `Hello world!` : any
|
||||
>CtorTag : typeof CtorTag
|
||||
>`Hello world!` : string
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
//// [taggedTemplateWithConstructableTag02.ts]
|
||||
interface I {
|
||||
new (...args: any[]): string;
|
||||
new (): number;
|
||||
}
|
||||
var tag: I;
|
||||
tag `Hello world!`;
|
||||
|
||||
//// [taggedTemplateWithConstructableTag02.js]
|
||||
var tag;
|
||||
(_a = ["Hello world!"], _a.raw = ["Hello world!"], tag(_a));
|
||||
var _a;
|
|
@ -0,0 +1,16 @@
|
|||
=== tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag02.ts ===
|
||||
interface I {
|
||||
>I : Symbol(I, Decl(taggedTemplateWithConstructableTag02.ts, 0, 0))
|
||||
|
||||
new (...args: any[]): string;
|
||||
>args : Symbol(args, Decl(taggedTemplateWithConstructableTag02.ts, 1, 9))
|
||||
|
||||
new (): number;
|
||||
}
|
||||
var tag: I;
|
||||
>tag : Symbol(tag, Decl(taggedTemplateWithConstructableTag02.ts, 4, 3))
|
||||
>I : Symbol(I, Decl(taggedTemplateWithConstructableTag02.ts, 0, 0))
|
||||
|
||||
tag `Hello world!`;
|
||||
>tag : Symbol(tag, Decl(taggedTemplateWithConstructableTag02.ts, 4, 3))
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
=== tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag02.ts ===
|
||||
interface I {
|
||||
>I : I
|
||||
|
||||
new (...args: any[]): string;
|
||||
>args : any[]
|
||||
|
||||
new (): number;
|
||||
}
|
||||
var tag: I;
|
||||
>tag : I
|
||||
>I : I
|
||||
|
||||
tag `Hello world!`;
|
||||
>tag `Hello world!` : any
|
||||
>tag : I
|
||||
>`Hello world!` : string
|
||||
|
Loading…
Reference in a new issue