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: 2.4.0
Code
class Greeter { greeting: { en: 'world!' } constructor(message: string) { } greet() { return "Hello, " + this.greeting.en; } } let greeter = new Greeter("world"); greeter.greet()
Expected behavior:
It would complain that this.greeting.en has not been set in the constructor.
this.greeting.en
Actual behavior:
Runtime error 🙀
The text was updated successfully, but these errors were encountered:
Duplicate of #8476
Sorry, something went wrong.
@RyanCavanaugh ah there it is. sorry about that!
No branches or pull requests
TypeScript Version: 2.4.0
Code
Expected behavior:
It would complain that
this.greeting.en
has not been set in the constructor.Actual behavior:
Runtime error 🙀
The text was updated successfully, but these errors were encountered: