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
From @PixelT on November 1, 2017 23:36
I have written a small code with inheritance:
The result is:
'Property 'name' does not exist on type' (x2) 'Property 'age' does not exist on type'
The suggestion also doesn't show this inheritance properties:
For example, on PHPStorm:
Example code to reproduce issue:
// @ts-check function Person(name, surname, age) { this.name = { name, surname }; this.age = age; } Person.prototype.info = function () { console.log('Person data: ' + this.name.name + ' ' + this.name.surname + ', ' + this.age); } function Teacher(name, surname, age, subject) { Person.call(this, name, surname, age); this.subject = subject; } Teacher.prototype = Object.create(Person.prototype); Teacher.prototype.constructor = Teacher; Teacher.prototype.info = function() { console.log('Teacher data: ' + this.name.name + ' ' + this.name.surname + ', ' + this.age); } var x = new Person('Johny', 'Walker', 30); var z = new Teacher('Johny2', 'Walker2', 55);
Copied from original issue: microsoft/vscode#37452
The text was updated successfully, but these errors were encountered:
Possible dup of #13206
Sorry, something went wrong.
No branches or pull requests
From @PixelT on November 1, 2017 23:36
I have written a small code with inheritance:
The result is:
The suggestion also doesn't show this inheritance properties:
For example, on PHPStorm:
Example code to reproduce issue:
Copied from original issue: microsoft/vscode#37452
The text was updated successfully, but these errors were encountered: