Without --strictNullChecks
, x && "a"
contributes a ""
type.
#20090
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
TypeScript Version: 2.7.0-dev.20171116
Code
Expected behavior:
No error. (Just like with
--strictNullChecks
.)Actual behavior:
The text was updated successfully, but these errors were encountered: