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

8 lines
332 B
Plaintext

==== tests/cases/conformance/expressions/functionCalls/forgottenNew.ts (1 errors) ====
module Tools {
export class NullLogger { }
}
var logger = Tools.NullLogger();
~~~~~~~~~~~~~~~~~~
!!! error TS2348: Value of type 'typeof NullLogger' is not callable. Did you mean to include 'new'?