We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
For this file:
class T { a: string constructor (a:string) { Object.assign(this, {a}) } } let t = new T('b')
tsc 3.8.3 reports
error TS2564: Property 'a' has no initializer and is not definitely assigned in the constructor.
I think property 'a'is definitely assigned in the constructor. this.a = a means the same.
this.a = a
The text was updated successfully, but these errors were encountered:
Duplicate of #28883. Search terms: object assign this constructor.
object assign this constructor
Sorry, something went wrong.
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
No branches or pull requests
For this file:
tsc 3.8.3 reports
error TS2564: Property 'a' has no initializer and is not definitely assigned in the constructor.
I think property 'a'is definitely assigned in the constructor.
this.a = a
means the same.The text was updated successfully, but these errors were encountered: