16 lines
No EOL
463 B
Text
16 lines
No EOL
463 B
Text
==== tests/cases/compiler/arrayLiteralAndArrayConstructorEquivalence1.ts (1 errors) ====
|
|
var myCars=new Array();
|
|
var myCars3 = new Array({});
|
|
var myCars4: Array; // error
|
|
~~~~~
|
|
!!! Generic type 'Array<T>' requires 1 type argument(s).
|
|
var myCars5: Array<any>[];
|
|
|
|
myCars = myCars3;
|
|
myCars = myCars4;
|
|
myCars = myCars5;
|
|
|
|
myCars3 = myCars;
|
|
myCars3 = myCars4;
|
|
myCars3 = myCars5;
|
|
|