TypeScript/tests/baselines/reference/newFunctionImplicitAny.errors.txt
2014-09-12 13:35:07 -07:00

10 lines
500 B
Plaintext

tests/cases/compiler/newFunctionImplicitAny.ts(4,12): error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
==== tests/cases/compiler/newFunctionImplicitAny.ts (1 errors) ====
// No implicit any error given when newing a function (up for debate)
function Test() { }
var test = new Test();
~~~~~~~~~~
!!! error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.