10 lines
No EOL
351 B
Text
10 lines
No EOL
351 B
Text
==== tests/cases/compiler/cannotInvokeNewOnErrorExpression.ts (2 errors) ====
|
|
module M
|
|
{
|
|
class ClassA {}
|
|
}
|
|
var t = new M.ClassA[];
|
|
~~
|
|
!!! 'new T[]' cannot be used to create an array. Use 'new Array<T>()' instead.
|
|
~~~~~~
|
|
!!! Property 'ClassA' does not exist on type 'typeof M'. |