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

7 lines
323 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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();
~~~~~~~~~~
!!! 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.