TypeScript/tests/baselines/reference/parserObjectCreationArrayLiteral3.errors.txt
2014-09-11 16:11:08 -07:00

6 lines
283 B
Plaintext

==== tests/cases/conformance/parser/ecmascript5/parserObjectCreationArrayLiteral3.ts (2 errors) ====
new Foo[]();
~~
!!! error TS1150: 'new T[]' cannot be used to create an array. Use 'new Array<T>()' instead.
~~~
!!! error TS2304: Cannot find name 'Foo'.