We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8422090 commit 0054e22Copy full SHA for 0054e22
src/coconut/data/macros/ModelBuilder.hx
@@ -214,7 +214,7 @@ class ModelBuilder {
214
215
if (afterInit.length > 0)
216
constr.addStatement(macro tink.state.Observable.untracked(function () {
217
- $b{afterInit};
+ (function () $b{afterInit})();
218
return null;
219
}));
220
}
tests/issues/Issue78.hx
@@ -4,7 +4,6 @@ package issues;
4
class Issue78 {
5
public function new() {}
6
7
- @:include
8
public function test() {
9
var m = new Issue78Model(42);
10
asserts.assert(m.foo == 43);
@@ -19,6 +18,6 @@ class Issue78Model implements Model {
19
18
@:computed var bar:Int = foo + 1;
20
21
public function new(foo:Int) {
22
- this = { foo: foo + 1 }
23
- }
+ this = { foo: foo + 1 }
+ }
24
0 commit comments