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
typeFoo={[key: string]: unknown}typeNullableFoo=Foo|undefinedtypeBar<TextendsNullableFoo>=NonNullable<T>[string]//error on 4.8, no error on 4.7typeBaz<TextendsFoo>=NonNullable<T>[string]// no errortypeQux=NonNullable<NullableFoo>[string]// no error
π Actual behavior
Type 'string' cannot be used to index type 'NonNullable'.(2536)
π Expected behavior
no error
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
4.8 nonnullable cannot be used to index type
π Version & Regression Information
4.8.0-dev.20220624
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
π Expected behavior
no error
The text was updated successfully, but these errors were encountered: