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
Private Member With Same Name of a Type Parameter #38345
TypeScript Version: 3.8.3
Either members with the same name of a type parameter are allowed, or they aren't. The current behavior does not make sense: They are allowed, but the member cannot be private if the class is exported.
Expected behavior:
No error is reported, since T refers to the type parameter T, not the member T.
Actual behavior:
An error is reported:
Return type of public method from exported class has or is using private name 'T'.(4055)
Activity