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
TypeScript Version: 3.5.1
Search Terms: index signature, property does not exist
Code
export class Test { [k: string]: any; someMethod() { this.age = 3; } }
Expected behavior: There should be no error, age assignment is correct according to index signature. It used to work in typescript 3.4.5
Actual behavior: Error "Property 'age' does not exist on type 'Test'"
The text was updated successfully, but these errors were encountered:
Argh, I recently fixed this in #31454, but neglected to update the separate code path we have for property access expressions.
Sorry, something went wrong.
this
ahejlsberg
Successfully merging a pull request may close this issue.
TypeScript Version: 3.5.1
Search Terms:
index signature, property does not exist
Code
Expected behavior:
There should be no error, age assignment is correct according to index signature.
It used to work in typescript 3.4.5
Actual behavior:
Error "Property 'age' does not exist on type 'Test'"
The text was updated successfully, but these errors were encountered: