Skip to content

Commit e0ed605

Browse files
authored
Haxe 5 compat.
1 parent 9dffa3b commit e0ed605

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/coconut/diffing/macros/ViewBuilder.hx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ class ViewBuilder {
1919
});
2020

2121
static public function postprocess(renders:ComplexType, ctx:coconut.ui.macros.ViewBuilder.ViewInfo) {
22-
var t = ctx.target.target.name.asComplexType([for(p in ctx.target.target.params) TPType(p.t.toComplex())]);
22+
// var t = ctx.target.target.name.asComplexType([for(p in ctx.target.target.params) TPType(p.t.toComplex())]);
23+
var t = (macro null).pos.makeBlankType();
24+
var native = (macro null).pos.makeBlankType();
2325
var ctor = ctx.target.getConstructor();
2426
ctor.addArg('implicits', macro : coconut.ui.internal.ImplicitContext, true);
2527
ctor.addStatement(macro _coco_implicits = implicits, true);
@@ -45,7 +47,7 @@ class ViewBuilder {
4547
},
4648
attributes:$attributes
4749
):$renders
48-
return new coconut.diffing.internal.VWidget(__factory, attributes, hxxMeta.key, hxxMeta.ref);
50+
return new coconut.diffing.internal.VWidget<$attributes, $native, $t>(__factory, attributes, hxxMeta.key, hxxMeta.ref);
4951
}
5052

5153
{
@@ -73,4 +75,4 @@ class ViewBuilder {
7375
}
7476
}
7577
}
76-
#end
78+
#end

0 commit comments

Comments
 (0)