2014-09-12 22:35:07 +02:00
tests/cases/compiler/cannotInvokeNewOnErrorExpression.ts(5,15): error TS2339: Property 'ClassA' does not exist on type 'typeof M'.
2014-12-17 00:56:56 +01:00
tests/cases/compiler/cannotInvokeNewOnErrorExpression.ts(5,21): error TS1150: 'new T[]' cannot be used to create an array. Use 'new Array<T>()' instead.
2014-09-12 22:35:07 +02:00
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/cannotInvokeNewOnErrorExpression.ts (2 errors) ====
module M
{
class ClassA {}
}
var t = new M.ClassA[];
~~~~~~
2014-12-17 00:56:56 +01:00
!!! error TS2339: Property 'ClassA' does not exist on type 'typeof M'.
~~
!!! error TS1150: 'new T[]' cannot be used to create an array. Use 'new Array<T>()' instead.