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
I have a case where I know all fields will be initialized when accessing this, but I cannot disable the nullSafety error for that case:
Tested in haxe 4.0.5, 4.1.2 and latest development to c862176
I have a case where I know all fields will be initialized when accessing
this
, but I cannot disable the nullSafety error for that case:Tested in haxe 4.0.5, 4.1.2 and latest development to c862176
Error is
Main.hx:10: characters 22-28 : Null safety: Cannot use "this" until all instance fields are initialized.
Attached repro
(While in this example I could just move field initialization before the promise, in my project that is not possible)
null-safety-issue.zip
The text was updated successfully, but these errors were encountered: