@@ -10,7 +10,7 @@ tests/cases/compiler/intTypeCheck.ts(103,5): error TS2322: Type '() => void' is
10
10
Property 'p' is missing in type '() => void'.
11
11
tests/cases/compiler/intTypeCheck.ts(106,5): error TS2322: Type 'boolean' is not assignable to type 'i1'.
12
12
tests/cases/compiler/intTypeCheck.ts(106,20): error TS1109: Expression expected.
13
- tests/cases/compiler/intTypeCheck.ts(106,21): error TS2304: Cannot find name 'i1'.
13
+ tests/cases/compiler/intTypeCheck.ts(106,21): error TS2693: 'i1' only refers to a type, but is being used as a value here .
14
14
tests/cases/compiler/intTypeCheck.ts(107,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
15
15
tests/cases/compiler/intTypeCheck.ts(112,5): error TS2322: Type '{}' is not assignable to type 'i2'.
16
16
Type '{}' provides no match for the signature '(): any'
@@ -21,7 +21,7 @@ tests/cases/compiler/intTypeCheck.ts(115,5): error TS2322: Type 'Base' is not as
21
21
Type 'Base' provides no match for the signature '(): any'
22
22
tests/cases/compiler/intTypeCheck.ts(120,5): error TS2322: Type 'boolean' is not assignable to type 'i2'.
23
23
tests/cases/compiler/intTypeCheck.ts(120,21): error TS1109: Expression expected.
24
- tests/cases/compiler/intTypeCheck.ts(120,22): error TS2304: Cannot find name 'i2'.
24
+ tests/cases/compiler/intTypeCheck.ts(120,22): error TS2693: 'i2' only refers to a type, but is being used as a value here .
25
25
tests/cases/compiler/intTypeCheck.ts(121,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
26
26
tests/cases/compiler/intTypeCheck.ts(126,5): error TS2322: Type '{}' is not assignable to type 'i3'.
27
27
Type '{}' provides no match for the signature 'new (): any'
@@ -33,12 +33,12 @@ tests/cases/compiler/intTypeCheck.ts(131,5): error TS2322: Type '() => void' is
33
33
Type '() => void' provides no match for the signature 'new (): any'
34
34
tests/cases/compiler/intTypeCheck.ts(134,5): error TS2322: Type 'boolean' is not assignable to type 'i3'.
35
35
tests/cases/compiler/intTypeCheck.ts(134,21): error TS1109: Expression expected.
36
- tests/cases/compiler/intTypeCheck.ts(134,22): error TS2304: Cannot find name 'i3'.
36
+ tests/cases/compiler/intTypeCheck.ts(134,22): error TS2693: 'i3' only refers to a type, but is being used as a value here .
37
37
tests/cases/compiler/intTypeCheck.ts(135,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
38
38
tests/cases/compiler/intTypeCheck.ts(142,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
39
39
tests/cases/compiler/intTypeCheck.ts(148,5): error TS2322: Type 'boolean' is not assignable to type 'i4'.
40
40
tests/cases/compiler/intTypeCheck.ts(148,21): error TS1109: Expression expected.
41
- tests/cases/compiler/intTypeCheck.ts(148,22): error TS2304: Cannot find name 'i4'.
41
+ tests/cases/compiler/intTypeCheck.ts(148,22): error TS2693: 'i4' only refers to a type, but is being used as a value here .
42
42
tests/cases/compiler/intTypeCheck.ts(149,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
43
43
tests/cases/compiler/intTypeCheck.ts(154,5): error TS2322: Type '{}' is not assignable to type 'i5'.
44
44
Property 'p' is missing in type '{}'.
@@ -51,7 +51,7 @@ tests/cases/compiler/intTypeCheck.ts(159,5): error TS2322: Type '() => void' is
51
51
Property 'p' is missing in type '() => void'.
52
52
tests/cases/compiler/intTypeCheck.ts(162,5): error TS2322: Type 'boolean' is not assignable to type 'i5'.
53
53
tests/cases/compiler/intTypeCheck.ts(162,21): error TS1109: Expression expected.
54
- tests/cases/compiler/intTypeCheck.ts(162,22): error TS2304: Cannot find name 'i5'.
54
+ tests/cases/compiler/intTypeCheck.ts(162,22): error TS2693: 'i5' only refers to a type, but is being used as a value here .
55
55
tests/cases/compiler/intTypeCheck.ts(163,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
56
56
tests/cases/compiler/intTypeCheck.ts(168,5): error TS2322: Type '{}' is not assignable to type 'i6'.
57
57
Type '{}' provides no match for the signature '(): any'
@@ -64,7 +64,7 @@ tests/cases/compiler/intTypeCheck.ts(173,5): error TS2322: Type '() => void' is
64
64
Type 'void' is not assignable to type 'number'.
65
65
tests/cases/compiler/intTypeCheck.ts(176,5): error TS2322: Type 'boolean' is not assignable to type 'i6'.
66
66
tests/cases/compiler/intTypeCheck.ts(176,21): error TS1109: Expression expected.
67
- tests/cases/compiler/intTypeCheck.ts(176,22): error TS2304: Cannot find name 'i6'.
67
+ tests/cases/compiler/intTypeCheck.ts(176,22): error TS2693: 'i6' only refers to a type, but is being used as a value here .
68
68
tests/cases/compiler/intTypeCheck.ts(177,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
69
69
tests/cases/compiler/intTypeCheck.ts(182,5): error TS2322: Type '{}' is not assignable to type 'i7'.
70
70
Type '{}' provides no match for the signature 'new (): any'
@@ -76,12 +76,12 @@ tests/cases/compiler/intTypeCheck.ts(187,5): error TS2322: Type '() => void' is
76
76
Type '() => void' provides no match for the signature 'new (): any'
77
77
tests/cases/compiler/intTypeCheck.ts(190,5): error TS2322: Type 'boolean' is not assignable to type 'i7'.
78
78
tests/cases/compiler/intTypeCheck.ts(190,21): error TS1109: Expression expected.
79
- tests/cases/compiler/intTypeCheck.ts(190,22): error TS2304: Cannot find name 'i7'.
79
+ tests/cases/compiler/intTypeCheck.ts(190,22): error TS2693: 'i7' only refers to a type, but is being used as a value here .
80
80
tests/cases/compiler/intTypeCheck.ts(191,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
81
81
tests/cases/compiler/intTypeCheck.ts(198,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
82
82
tests/cases/compiler/intTypeCheck.ts(204,5): error TS2322: Type 'boolean' is not assignable to type 'i8'.
83
83
tests/cases/compiler/intTypeCheck.ts(204,21): error TS1109: Expression expected.
84
- tests/cases/compiler/intTypeCheck.ts(204,22): error TS2304: Cannot find name 'i8'.
84
+ tests/cases/compiler/intTypeCheck.ts(204,22): error TS2693: 'i8' only refers to a type, but is being used as a value here .
85
85
tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
86
86
87
87
@@ -214,7 +214,7 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit
214
214
~
215
215
!!! error TS1109: Expression expected.
216
216
~~
217
- !!! error TS2304: Cannot find name 'i1'.
217
+ !!! error TS2693: 'i1' only refers to a type, but is being used as a value here .
218
218
var obj10: i1 = new {};
219
219
~~~~~~
220
220
!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
@@ -247,7 +247,7 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit
247
247
~
248
248
!!! error TS1109: Expression expected.
249
249
~~
250
- !!! error TS2304: Cannot find name 'i2'.
250
+ !!! error TS2693: 'i2' only refers to a type, but is being used as a value here .
251
251
var obj21: i2 = new {};
252
252
~~~~~~
253
253
!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
@@ -281,7 +281,7 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit
281
281
~
282
282
!!! error TS1109: Expression expected.
283
283
~~
284
- !!! error TS2304: Cannot find name 'i3'.
284
+ !!! error TS2693: 'i3' only refers to a type, but is being used as a value here .
285
285
var obj32: i3 = new {};
286
286
~~~~~~
287
287
!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
@@ -305,7 +305,7 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit
305
305
~
306
306
!!! error TS1109: Expression expected.
307
307
~~
308
- !!! error TS2304: Cannot find name 'i4'.
308
+ !!! error TS2693: 'i4' only refers to a type, but is being used as a value here .
309
309
var obj43: i4 = new {};
310
310
~~~~~~
311
311
!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
@@ -341,7 +341,7 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit
341
341
~
342
342
!!! error TS1109: Expression expected.
343
343
~~
344
- !!! error TS2304: Cannot find name 'i5'.
344
+ !!! error TS2693: 'i5' only refers to a type, but is being used as a value here .
345
345
var obj54: i5 = new {};
346
346
~~~~~~
347
347
!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
@@ -377,7 +377,7 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit
377
377
~
378
378
!!! error TS1109: Expression expected.
379
379
~~
380
- !!! error TS2304: Cannot find name 'i6'.
380
+ !!! error TS2693: 'i6' only refers to a type, but is being used as a value here .
381
381
var obj65: i6 = new {};
382
382
~~~~~~
383
383
!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
@@ -411,7 +411,7 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit
411
411
~
412
412
!!! error TS1109: Expression expected.
413
413
~~
414
- !!! error TS2304: Cannot find name 'i7'.
414
+ !!! error TS2693: 'i7' only refers to a type, but is being used as a value here .
415
415
var obj76: i7 = new {};
416
416
~~~~~~
417
417
!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
@@ -435,7 +435,7 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit
435
435
~
436
436
!!! error TS1109: Expression expected.
437
437
~~
438
- !!! error TS2304: Cannot find name 'i8'.
438
+ !!! error TS2693: 'i8' only refers to a type, but is being used as a value here .
439
439
var obj87: i8 = new {};
440
440
~~~~~~
441
441
!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
0 commit comments