TypeScript/tests/baselines/reference/forgottenNew.errors.txt

8 lines
289 B
Text
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/forgottenNew.ts (1 errors) ====
module Tools {
export class NullLogger { }
}
var logger = Tools.NullLogger();
~~~~~~~~~~~~~~~~~~
!!! Value of type 'typeof NullLogger' is not callable. Did you mean to include 'new'?