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
leta: [string,'asc'|'desc'][];a=[['some','asc']];// No errorclassA{a: [string,'asc'|'desc'][];}classBextendsA{a=[['some','asc']];// Error string[][] is not assignable to [string, 'asc' | 'desc'][]}
Expected behavior:
The default initialised member a in class B should not error.
Actual behavior:
The default initialised member a errors.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.2.1 / nightly (2.2.0-dev.201xxxxx)
Code
Expected behavior:
The default initialised member
a
in classB
should not error.Actual behavior:
The default initialised member
a
errors.The text was updated successfully, but these errors were encountered: