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
With --noImplicitAny true --strictNullChecks false, I would expect an un-annotated [] to fail -- and it does, but only inside another array, as in [[]].
Given this code:
With various settings of
--noImplicitAny
andstrictNullChecks
, we get the following types forx
on line 3:--noImplicitAny false
--noImplicitAny true
--strictNullChecks false
any[]
number[]
--strictNullChecks true
never[]
number[]
I would expect the lower-left corner to also be
any[]
, notnever[]
.(Ref: #16218 (comment))
The text was updated successfully, but these errors were encountered: