Accepted baselines.

This commit is contained in:
Daniel Rosenwasser 2016-08-22 23:10:16 -07:00
parent 0f83fc130e
commit e7798c002e
6 changed files with 75 additions and 0 deletions

View file

@ -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;

View file

@ -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))

View file

@ -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

View file

@ -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;

View file

@ -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))

View file

@ -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