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
Cannot access indexed type of constrained type parameter #12340
Expected behavior:
Should compile since Boxed has index signature. T with constraint Boxed should also be indexable, with T[K] constrained by Boxed's value type, in this case, {value: any}
Actual behavior:
Error, Property 'value' does not exist on type 'T[K]'
Activity
ahejlsberg commentedon Nov 18, 2016
Duplicate of #12311. Fixed by #12351.