mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 20:51:43 -06:00
Accepted baselines.
This commit is contained in:
parent
eb8eeafc22
commit
a2073f1217
@ -1,21 +1,9 @@
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(13,11): error TS2350: Only a void function can be called with the 'new' keyword.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(13,11): error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(13,27): error TS1005: '(' expected.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(13,27): error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'String' has no compatible call signatures.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(13,60): error TS1005: ')' expected.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(15,11): error TS2350: Only a void function can be called with the 'new' keyword.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(15,11): error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(15,27): error TS1005: '(' expected.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(15,27): error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'String' has no compatible call signatures.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(15,68): error TS1005: ')' expected.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(17,11): error TS2350: Only a void function can be called with the 'new' keyword.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(17,11): error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(17,27): error TS1005: '(' expected.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(17,27): error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'String' has no compatible call signatures.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(17,68): error TS1005: ')' expected.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(13,30): error TS2345: Argument of type '"hello"' is not assignable to parameter of type 'number'.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(15,11): error TS2347: Untyped function calls may not accept type arguments.
|
||||
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(17,30): error TS2345: Argument of type '"hello"' is not assignable to parameter of type 'number'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts (15 errors) ====
|
||||
==== tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts (3 errors) ====
|
||||
export interface SomethingTaggable {
|
||||
<T>(t: TemplateStringsArray, ...args: T[]): SomethingNewable;
|
||||
}
|
||||
@ -29,38 +17,14 @@ tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(17,68
|
||||
const a = new tag `${100} ${200}`<string>("hello", "world");
|
||||
|
||||
const b = new tag<number> `${"hello"} ${"world"}`(100, 200);
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2350: Only a void function can be called with the 'new' keyword.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
|
||||
~~~
|
||||
!!! error TS1005: '(' expected.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'String' has no compatible call signatures.
|
||||
~
|
||||
!!! error TS1005: ')' expected.
|
||||
~~~~~~~
|
||||
!!! error TS2345: Argument of type '"hello"' is not assignable to parameter of type 'number'.
|
||||
|
||||
const c = new tag<number> `${100} ${200}`<string>("hello", "world");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2350: Only a void function can be called with the 'new' keyword.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
|
||||
~~~
|
||||
!!! error TS1005: '(' expected.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'String' has no compatible call signatures.
|
||||
~
|
||||
!!! error TS1005: ')' expected.
|
||||
!!! error TS2347: Untyped function calls may not accept type arguments.
|
||||
|
||||
const d = new tag<number> `${"hello"} ${"world"}`<string>(100, 200);
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2350: Only a void function can be called with the 'new' keyword.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
|
||||
~~~
|
||||
!!! error TS1005: '(' expected.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'String' has no compatible call signatures.
|
||||
~
|
||||
!!! error TS1005: ')' expected.
|
||||
~~~~~~~
|
||||
!!! error TS2345: Argument of type '"hello"' is not assignable to parameter of type 'number'.
|
||||
|
||||
@ -20,6 +20,6 @@ const d = new tag<number> `${"hello"} ${"world"}`<string>(100, 200);
|
||||
|
||||
//// [taggedTemplatesWithTypeArguments2.js]
|
||||
const a = new tag `${100} ${200}`("hello", "world");
|
||||
const b = new tag(`${"hello"} ${"world"}`(100, 200));
|
||||
const c = new tag(`${100} ${200}`("hello", "world"));
|
||||
const d = new tag(`${"hello"} ${"world"}`(100, 200));
|
||||
const b = new tag `${"hello"} ${"world"}`(100, 200);
|
||||
const c = (new tag `${100} ${200}`)("hello", "world");
|
||||
const d = (new tag `${"hello"} ${"world"}`)(100, 200);
|
||||
|
||||
@ -38,8 +38,8 @@ const a = new tag `${100} ${200}`<string>("hello", "world");
|
||||
const b = new tag<number> `${"hello"} ${"world"}`(100, 200);
|
||||
>b : any
|
||||
>new tag<number> `${"hello"} ${"world"}`(100, 200) : any
|
||||
>tag<number> `${"hello"} ${"world"}` : any
|
||||
>tag : SomethingTaggable
|
||||
>`${"hello"} ${"world"}`(100, 200) : any
|
||||
>`${"hello"} ${"world"}` : string
|
||||
>"hello" : "hello"
|
||||
>"world" : "world"
|
||||
@ -49,8 +49,9 @@ const b = new tag<number> `${"hello"} ${"world"}`(100, 200);
|
||||
const c = new tag<number> `${100} ${200}`<string>("hello", "world");
|
||||
>c : any
|
||||
>new tag<number> `${100} ${200}`<string>("hello", "world") : any
|
||||
>new tag<number> `${100} ${200}` : any
|
||||
>tag<number> `${100} ${200}` : SomethingNewable
|
||||
>tag : SomethingTaggable
|
||||
>`${100} ${200}`<string>("hello", "world") : any
|
||||
>`${100} ${200}` : string
|
||||
>100 : 100
|
||||
>200 : 200
|
||||
@ -60,8 +61,9 @@ const c = new tag<number> `${100} ${200}`<string>("hello", "world");
|
||||
const d = new tag<number> `${"hello"} ${"world"}`<string>(100, 200);
|
||||
>d : any
|
||||
>new tag<number> `${"hello"} ${"world"}`<string>(100, 200) : any
|
||||
>new tag<number> `${"hello"} ${"world"}` : any
|
||||
>tag<number> `${"hello"} ${"world"}` : any
|
||||
>tag : SomethingTaggable
|
||||
>`${"hello"} ${"world"}`<string>(100, 200) : any
|
||||
>`${"hello"} ${"world"}` : string
|
||||
>"hello" : "hello"
|
||||
>"world" : "world"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user