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
// minimal code for reproduction: Have a class extend another, and have a property with the same name as a generic typeclassBaseClass{}classItem<data>extendsBaseClass{data: data;getData(){returnthis.data;}}
π Actual behavior
TS2339: Property 'data' does not exist on type 'Item'.
π Expected behavior
No transpiler errors
Additional information about the issue
Note: compilerOptions are default
While it may be bad design to have properties and generic types share names, I didn't find it listed anywhere as a breaking change; my mistake if it is :)
Good luck!
The text was updated successfully, but these errors were encountered:
ClementValot
changed the title
[Regresssion 5.3.2] TS2339 property cannot be resolved when generic type has the same name
[Regression 5.3.2] TS2339 property cannot be resolved when generic type has the same name
Dec 4, 2023
Uh oh!
There was an error while loading. Please reload this page.
π Search Terms
generic types
regression
5.3.2
TS2339
π Version & Regression Information
β― Playground Link
No response
π» Code
π Actual behavior
TS2339: Property 'data' does not exist on type 'Item'.
π Expected behavior
No transpiler errors
Additional information about the issue
Note: compilerOptions are default
While it may be bad design to have properties and generic types share names, I didn't find it listed anywhere as a breaking change; my mistake if it is :)
Good luck!
The text was updated successfully, but these errors were encountered: