Unintentional bugfix?: Type parameters no longer assignable to unions with object
and undefined
in strict null checks
#24013
Labels
Breaking Change
Would introduce errors in existing code
Milestone
TypeScript Version: 2.9.0-dev.20180509
Search Terms:
Code
in 2.8 with
![image](https://user-images.githubusercontent.com/2932786/39846554-22acc194-53b1-11e8-942f-4987a3d8c584.png)
strictNullChecks
on, this compiles (it does not when it is off). In very recentmaster
, however, it is now an error (as it should be?):Playground Link
While I think the error is certainly correct to issue, this change apparently breaks a handful of RWC tests, so is worth looking into.
The text was updated successfully, but these errors were encountered: