MVCoconut / coconut.data

Observable Data Layer.
The Unlicense
20 stars 8 forks source link

Reference to class member with explicit `this` #78

Closed kevinresol closed 3 years ago

kevinresol commented 3 years ago

Before this fix the following code fails to build because the function argument is passed to Observable.const (instead of the underlying class member which actually stores the constant)

class MyModel implements Model {
    @:constant var foo:Int;
    public function new(foo:Int) {
        this = { foo: foo }
    }
}