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
classGreeter{greeting: string;constructor(message: string){// do nothing}greet(){return'Hello, '+this.greeting;}}exportletgreeting: string=newGreeter('world').greeting;// greeting is undefinedconsole.log(greeting);
Expected behavior:
I would expect the compiler to complain about greeting not being assigned at least once in constructor with strictNullChecks flag activated.
Actual behavior:
The code run without error.
The text was updated successfully, but these errors were encountered:
TypeScript Version:
1.9.0-dev.20160613-1.0
Code
Expected behavior:
I would expect the compiler to complain about greeting not being assigned at least once in constructor with strictNullChecks flag activated.
Actual behavior:
The code run without error.
The text was updated successfully, but these errors were encountered: