2014-09-12 22:35:07 +02:00
tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes2.ts(16,11): error TS2348: Value of type 'new () => string' is not callable. Did you mean to include 'new'?
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes2.ts (1 errors) ====
// valid uses of arrays of function types
var x: new () => string[];
var r = x[1];
var r2 = new r();
var r2b = r();
var x2: { new(): string }[];
var r3 = x[1];
var r4 = new r3();
var r4b = new r3();
var x3: Array<new () => string>;
var r5 = x2[1];
var r6 = new r5();
var r6b = r5();
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2348: Value of type 'new () => string' is not callable. Did you mean to include 'new'?