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
Unnecessary elaboration about not being assignable to type parameters #42849
Type 'T | Yadda' is not assignable to type 'T'.
'T' could be instantiated with an arbitrary type which could be unrelated to 'T | Yadda'.
Type 'Yadda' is not assignable to type 'T'.
'T' could be instantiated with an arbitrary type which could be unrelated to 'Yadda'.
Proposed
Either
Type 'T | Yadda' is not assignable to type 'T'.
Type 'Yadda' is not assignable to type 'T'.
'T' could be instantiated with an arbitrary type which could be unrelated to 'Yadda'.
or
Type 'T | Yadda' is not assignable to type 'T'.
'T' could be instantiated with an arbitrary type which could be unrelated to 'T | Yadda'.
changed the title [-]Unnecessary repetition about constraint types[/-][+]Unnecessary elaboration about not being assignable to type parameters[/+]on Feb 17, 2021
I created a pull request that makes the proposed change (#42952) but had one small question about the behavior in scenarios related to the one discussed here.
Activity
[-]Unnecessary repetition about constraint types[/-][+]Unnecessary elaboration about not being assignable to type parameters[/+]jonhue commentedon Feb 25, 2021
I created a pull request that makes the proposed change (#42952) but had one small question about the behavior in scenarios related to the one discussed here.