mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Accepted baselines.
This commit is contained in:
parent
7ecbfb2148
commit
5ce285c367
@ -0,0 +1,16 @@
|
||||
tests/cases/conformance/decorators/class/constructableDecoratorOnClass01.ts(4,1): error TS1238: Unable to resolve signature of class decorator when called as an expression.
|
||||
Cannot invoke an expression whose type lacks a call signature.
|
||||
|
||||
|
||||
==== tests/cases/conformance/decorators/class/constructableDecoratorOnClass01.ts (1 errors) ====
|
||||
|
||||
class CtorDtor {}
|
||||
|
||||
@CtorDtor
|
||||
~~~~~~~~~
|
||||
!!! error TS1238: Unable to resolve signature of class decorator when called as an expression.
|
||||
!!! error TS1238: Cannot invoke an expression whose type lacks a call signature.
|
||||
class C {
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag01.ts(3,1): error TS2349: Cannot invoke an expression whose type lacks a call signature.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag01.ts (1 errors) ====
|
||||
class CtorTag { }
|
||||
|
||||
CtorTag `Hello world!`;
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2349: Cannot invoke an expression whose type lacks a call signature.
|
||||
@ -0,0 +1,12 @@
|
||||
tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag02.ts(6,1): error TS2349: Cannot invoke an expression whose type lacks a call signature.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag02.ts (1 errors) ====
|
||||
interface I {
|
||||
new (...args: any[]): string;
|
||||
new (): number;
|
||||
}
|
||||
var tag: I;
|
||||
tag `Hello world!`;
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2349: Cannot invoke an expression whose type lacks a call signature.
|
||||
Loading…
x
Reference in New Issue
Block a user