Skip to content

Commit 5ce285c

Browse files
Accepted baselines.
1 parent 7ecbfb2 commit 5ce285c

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
tests/cases/conformance/decorators/class/constructableDecoratorOnClass01.ts(4,1): error TS1238: Unable to resolve signature of class decorator when called as an expression.
2+
Cannot invoke an expression whose type lacks a call signature.
3+
4+
5+
==== tests/cases/conformance/decorators/class/constructableDecoratorOnClass01.ts (1 errors) ====
6+
7+
class CtorDtor {}
8+
9+
@CtorDtor
10+
~~~~~~~~~
11+
!!! error TS1238: Unable to resolve signature of class decorator when called as an expression.
12+
!!! error TS1238: Cannot invoke an expression whose type lacks a call signature.
13+
class C {
14+
15+
}
16+
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(3,1): error TS2349: Cannot invoke an expression whose type lacks a call signature.
2+
3+
4+
==== tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag01.ts (1 errors) ====
5+
class CtorTag { }
6+
7+
CtorTag `Hello world!`;
8+
~~~~~~~~~~~~~~~~~~~~~~
9+
!!! error TS2349: Cannot invoke an expression whose type lacks a call signature.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag02.ts(6,1): error TS2349: Cannot invoke an expression whose type lacks a call signature.
2+
3+
4+
==== tests/cases/conformance/es6/templates/taggedTemplateWithConstructableTag02.ts (1 errors) ====
5+
interface I {
6+
new (...args: any[]): string;
7+
new (): number;
8+
}
9+
var tag: I;
10+
tag `Hello world!`;
11+
~~~~~~~~~~~~~~~~~~
12+
!!! error TS2349: Cannot invoke an expression whose type lacks a call signature.

0 commit comments

Comments
 (0)