You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one try to set a property that hasn't any getter defined, the compiler doesn't emit any error or warning and the code silently fails à runtime.
example:
classGreeter{private_greeting: string;getgreeting(): string{returnthis._greeting;}constructor(message: string){this.greeting=message;//no error at compile time and silent failure at execution time}greet(){return"Hello, "+this.greeting;}}
The text was updated successfully, but these errors were encountered:
If one try to set a property that hasn't any getter defined, the compiler doesn't emit any error or warning and the code silently fails à runtime.
example:
The text was updated successfully, but these errors were encountered: