@@ -29,15 +29,7 @@ tests/cases/compiler/intTypeCheck.ts(134,5): error TS2322: Type 'boolean' is not
29
29
tests/cases/compiler/intTypeCheck.ts(134,21): error TS1109: Expression expected.
30
30
tests/cases/compiler/intTypeCheck.ts(134,22): error TS2304: Cannot find name 'i3'.
31
31
tests/cases/compiler/intTypeCheck.ts(135,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
32
- tests/cases/compiler/intTypeCheck.ts(141,5): error TS2322: Type 'Object' is not assignable to type 'i4'.
33
- Index signature is missing in type 'Object'.
34
32
tests/cases/compiler/intTypeCheck.ts(142,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
35
- tests/cases/compiler/intTypeCheck.ts(143,5): error TS2322: Type 'Base' is not assignable to type 'i4'.
36
- Index signature is missing in type 'Base'.
37
- tests/cases/compiler/intTypeCheck.ts(145,5): error TS2322: Type '() => void' is not assignable to type 'i4'.
38
- Index signature is missing in type '() => void'.
39
- tests/cases/compiler/intTypeCheck.ts(148,5): error TS2322: Type 'boolean' is not assignable to type 'i4'.
40
- Index signature is missing in type 'Boolean'.
41
33
tests/cases/compiler/intTypeCheck.ts(148,21): error TS1109: Expression expected.
42
34
tests/cases/compiler/intTypeCheck.ts(148,22): error TS2304: Cannot find name 'i4'.
43
35
tests/cases/compiler/intTypeCheck.ts(149,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
@@ -73,21 +65,13 @@ tests/cases/compiler/intTypeCheck.ts(190,5): error TS2322: Type 'boolean' is not
73
65
tests/cases/compiler/intTypeCheck.ts(190,21): error TS1109: Expression expected.
74
66
tests/cases/compiler/intTypeCheck.ts(190,22): error TS2304: Cannot find name 'i7'.
75
67
tests/cases/compiler/intTypeCheck.ts(191,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
76
- tests/cases/compiler/intTypeCheck.ts(197,5): error TS2322: Type 'Object' is not assignable to type 'i8'.
77
- Index signature is missing in type 'Object'.
78
68
tests/cases/compiler/intTypeCheck.ts(198,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
79
- tests/cases/compiler/intTypeCheck.ts(199,5): error TS2322: Type 'Base' is not assignable to type 'i8'.
80
- Index signature is missing in type 'Base'.
81
- tests/cases/compiler/intTypeCheck.ts(201,5): error TS2322: Type '() => void' is not assignable to type 'i8'.
82
- Index signature is missing in type '() => void'.
83
- tests/cases/compiler/intTypeCheck.ts(204,5): error TS2322: Type 'boolean' is not assignable to type 'i8'.
84
- Index signature is missing in type 'Boolean'.
85
69
tests/cases/compiler/intTypeCheck.ts(204,21): error TS1109: Expression expected.
86
70
tests/cases/compiler/intTypeCheck.ts(204,22): error TS2304: Cannot find name 'i8'.
87
71
tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
88
72
89
73
90
- ==== tests/cases/compiler/intTypeCheck.ts (69 errors) ====
74
+ ==== tests/cases/compiler/intTypeCheck.ts (61 errors) ====
91
75
interface i1 {
92
76
//Property Signatures
93
77
p;
@@ -287,27 +271,15 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit
287
271
var obj33: i4;
288
272
var obj34: i4 = {};
289
273
var obj35: i4 = new Object();
290
- ~~~~~
291
- !!! error TS2322: Type 'Object' is not assignable to type 'i4'.
292
- !!! error TS2322: Index signature is missing in type 'Object'.
293
274
var obj36: i4 = new obj33;
294
275
~~~~~~~~~
295
276
!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
296
277
var obj37: i4 = new Base;
297
- ~~~~~
298
- !!! error TS2322: Type 'Base' is not assignable to type 'i4'.
299
- !!! error TS2322: Index signature is missing in type 'Base'.
300
278
var obj38: i4 = null;
301
279
var obj39: i4 = function () { };
302
- ~~~~~
303
- !!! error TS2322: Type '() => void' is not assignable to type 'i4'.
304
- !!! error TS2322: Index signature is missing in type '() => void'.
305
280
//var obj40: i4 = function foo() { };
306
281
var obj41: i4 = <i4> anyVar;
307
282
var obj42: i4 = new <i4> anyVar;
308
- ~~~~~
309
- !!! error TS2322: Type 'boolean' is not assignable to type 'i4'.
310
- !!! error TS2322: Index signature is missing in type 'Boolean'.
311
283
~
312
284
!!! error TS1109: Expression expected.
313
285
~~
@@ -421,27 +393,15 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit
421
393
var obj77: i8;
422
394
var obj78: i8 = {};
423
395
var obj79: i8 = new Object();
424
- ~~~~~
425
- !!! error TS2322: Type 'Object' is not assignable to type 'i8'.
426
- !!! error TS2322: Index signature is missing in type 'Object'.
427
396
var obj80: i8 = new obj77;
428
397
~~~~~~~~~
429
398
!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
430
399
var obj81: i8 = new Base;
431
- ~~~~~
432
- !!! error TS2322: Type 'Base' is not assignable to type 'i8'.
433
- !!! error TS2322: Index signature is missing in type 'Base'.
434
400
var obj82: i8 = null;
435
401
var obj83: i8 = function () { };
436
- ~~~~~
437
- !!! error TS2322: Type '() => void' is not assignable to type 'i8'.
438
- !!! error TS2322: Index signature is missing in type '() => void'.
439
402
//var obj84: i8 = function foo() { };
440
403
var obj85: i8 = <i8> anyVar;
441
404
var obj86: i8 = new <i8> anyVar;
442
- ~~~~~
443
- !!! error TS2322: Type 'boolean' is not assignable to type 'i8'.
444
- !!! error TS2322: Index signature is missing in type 'Boolean'.
445
405
~
446
406
!!! error TS1109: Expression expected.
447
407
~~
0 commit comments