Closed restorer closed 5 years ago
class Bug5 { private var v : Int; public function new() { v = 42; // Safety: Cannot use "this" until all instance fields are initialized. function cb() : Int { return v; } } }
See https://github.com/restorer/haxe-safety-bugs/blob/master/safetybugs/Main.hx#L82 for working example.
This is for Haxe 4.0.0-preview.5 and Safety from master.
fixed in https://github.com/HaxeFoundation/haxe/pull/7717
See https://github.com/restorer/haxe-safety-bugs/blob/master/safetybugs/Main.hx#L82 for working example.