Type Checking is broken for primitives
Closed this issue · 1 comments
Methuselah96 commented
From @rohitpratapitm on Mon, 10 Feb 2020 17:07:22 GMT
Set<string> is allowing users to pass Set<number>.
// passing NUMBERS in a set of STRING
set: Set<string> = Set<string>([1,2,3]);
Type checking should be enforced while using generics.
How to reproduce
See stackblitz here :
angular-immutable-js-generics-issue
Methuselah96 commented
Fixed in immutable@4.0.0-rc.12.