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.6.3
Search Terms: only setter in class implements interfaces. Interface property bugs.
Code
interface Properties { val: number; } class BadProps implements Properties { private _val: number = 42; set val(newVal: number) { this._val = newVal; } }
Expected behavior: A type error that the implementing class is missing the getter.
Actual behavior: Just runtime error of undefined.
Playground Link: Above example
Related Issues:
The text was updated successfully, but these errors were encountered:
Probably related to PR #33509 by @sandersn
Sorry, something went wrong.
Duplicate #30852; others
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
TypeScript Version: 3.6.3
Search Terms: only setter in class implements interfaces. Interface property bugs.
Code
Expected behavior:
A type error that the implementing class is missing the getter.
Actual behavior:
Just runtime error of undefined.
Playground Link:
Above example
Related Issues:
The text was updated successfully, but these errors were encountered: