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
{{ message }}
Repository navigation
Non initialize class fields doesn't treats as nullable #8588
Followed code are invalid at the type level, but it successfully typechecks by Flow:
/* @flow */classFoo{foo : string}//field 'foo' has no initializer but have type 'string'constmy_foo : Foo=newFoo()constundefined_here : string=my_foo.foo// 'undefined_here' type was declared as 'string'// but it's value will be 'undefined'
Expected behavior
Static checking time error.
Actual behavior
Successfully passed typechecking, and undefined at the runtime.
Activity