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