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
{{ message }}
Repository navigation
Array of tuple default initializer assignability issue #15696
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.
Activity
RyanCavanaugh commentedon May 9, 2017
Duplicate #10570