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
fix(46032): fix false positive in isSimpleTypeRelatedTo()
When the following conditions are satisfied,
`isSimpleTypeRelatedTo(source, target)` returns true, which is false
positive.
- `strictNullChecks` is disabled
- `source` is `undefined`
- `target` is an empty intersection type which reduces to `never` by
discriminants
In this case, `isSimpleTypeRelatedTo()` should actually return `false`,
which does *not* mean `source` doesn't relate to `target`, but rather
tells the checker to further investigate their relation.
0 commit comments