We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subclass property type parameter resolution 2339
https://tsplay.dev/wEYkOw
class Leg {} class Foo<t> extends Leg { t = {} as t // should allow this access since t was declared as a property on Foo foo = this.t }
Error on accessing t: Property 't' does not exist on type 'Foo<t>'.ts(2339)
t
Property 't' does not exist on type 'Foo<t>'.ts(2339)
Should allow t to be accessed.
No response
The text was updated successfully, but these errors were encountered:
Duplicate of #56620.
Sorry, something went wrong.
This issue has been marked as "Duplicate" and has seen no recent activity. It has been automatically closed for house-keeping purposes.
Successfully merging a pull request may close this issue.
π Search Terms
subclass property type parameter resolution 2339
π Version & Regression Information
β― Playground Link
https://tsplay.dev/wEYkOw
π» Code
π Actual behavior
Error on accessing
t
:Property 't' does not exist on type 'Foo<t>'.ts(2339)
π Expected behavior
Should allow
t
to be accessed.Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: