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
This doesn't fit the criteria of an "implicit any". Map explicitly has a construct signature that returns Map<any, any>, and that first any was an explicit inference candidate for Test<T>'s T.
TypeScript Version: 3.6.2
Search Terms:
noImplicitAny generic
Code
Expected behavior:
When using strict / noImplicityAny I would expect that T which implicitly became any would be reported as an error.
Actual behavior:
No error thrown, T becomes of type any.
Playground Link:
https://www.typescriptlang.org/play/index.html?target=6#code/MYGwhgzhAEAqCmEAuAeWA+aBvAUNf0A9gA5ICWhAdhAFzQCyYxaANNMgE5mUDmmAvNErwA7gyYAKAJR4CwKpwCuwJIQ4SS5BXUbNYbTtz5TssggTPQAvjhs4Q8JNCeDhYhMglvxxaTKQAdJoU1AEQjhIARGCRbNEARsCR-kGkIRBhEQCMAEwAzHFgiclAA
The text was updated successfully, but these errors were encountered: