Closed
Description
TypeScript Version: vNightly in Playground
Search Terms:
inferred any, implicit any, unsound
Code
function getStrings(): Map<string, string> {
const val = new Map();
val.set(42, true);
return val;
}
Expected behavior:
I expected this to throw an error if noImplicitAny
is enabled.
For what it's worth, Flow handles this correctly.
Actual behavior:
No errors
Related Issues:
No