You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Values of type Function can be invoked with call expressions and no checking of arguments and their types will be performed:
let fn: Function;fn();// no errorfn("",42);// no error
However, this behavior is also applied to values of type constructor{?} (and for consistency also to values of a type that contains a construct signature without a call signature), which is probably(!) not desired:
let ctor: constructor{?};ctor();// no errorctor("hello",42);// no error
This should be reconsidered!
Also check tests in file CallConstructSignature_usage1.n4js.xt (search for **) and search the code base for TODO GH-2279.
The text was updated successfully, but these errors were encountered:
Values of type
Function
can be invoked with call expressions and no checking of arguments and their types will be performed:However, this behavior is also applied to values of type
constructor{?}
(and for consistency also to values of a type that contains a construct signature without a call signature), which is probably(!) not desired:This should be reconsidered!
Also check tests in file
CallConstructSignature_usage1.n4js.xt
(search for**
) and search the code base forTODO GH-2279
.The text was updated successfully, but these errors were encountered: