7 lines
323 B
Text
7 lines
323 B
Text
|
==== 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.
|