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
Expected behavior:
Either an error on the definition of forEachType warning about possible issues about overwritten parameters, or an error on the usage of addThingCallback with forEachType warning that it has excess arguments which may not be fulfilled by the specified type at runtime. Actual behavior:
No error.
I feel like this is in the vein of improved checking that we've been doing with strict callback variance and excess property checks.
cc @rbuckton since you seemed interested - here's an issue to track it, and @sandersn, since you did work on the object literal checks.
The text was updated successfully, but these errors were encountered:
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)
Just found a bug like this while editing our compiler - it would be super nice if we caught it.
Code
Expected behavior:
Either an error on the definition of
forEachType
warning about possible issues about overwritten parameters, or an error on the usage ofaddThingCallback
withforEachType
warning that it has excess arguments which may not be fulfilled by the specified type at runtime.Actual behavior:
No error.
I feel like this is in the vein of improved checking that we've been doing with strict callback variance and excess property checks.
cc @rbuckton since you seemed interested - here's an issue to track it, and @sandersn, since you did work on the object literal checks.
The text was updated successfully, but these errors were encountered: