HaxeFoundation / HaxeFoundation/haxe
macro failing to compile with night build
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
I was testing this simple test: https://github.com/ex/haxe/tree/master/haxeui
with haxeui and haxe latest versions and found this error.
```haxe
private static function insertLine(fn, e:Expr, location:Int):Void {
fn.expr = switch(fn.expr.expr) {
case EBlock(el): macro $b{insertExpr(el, location, e)};
case _: macro $b { insertExpr([fn.expr], location, e) }
}
}
```
With error:
```
haxeui/haxe/ui/toolkit/core/Macros.hx:544: characters 33-42 : { expr : haxe.macro.ExprDef } should be haxe.macro.Expr
haxeui/haxe/ui/toolkit/core/Macros.hx:544: characters 33-42 : { expr : haxe.macro.ExprDef } should be { pos : haxe.macro.Position, expr : haxe.macro.ExprDef }
haxeui/haxe/ui/toolkit/core/Macros.hx:544: characters 33-42 : Inconsistent setter for field expr : null should be default
haxeui/haxe/ui/toolkit/core/Macros.hx:544: characters 33-42 : For function argument 'arr'
haxeui/haxe/ui/toolkit/core/Macros.hx:544: characters 3-7 : Void should be { expr : haxe.macro.ExprDef }
haxeui/haxe/ui/toolkit/layout/Layout.hx:9: characters 2-7 : Build failure
```
I just need to be sure this need to addressed in haxeui or if it's a problem with some of the macro changes in Haxe 3.3.0. Can somebody with macro expertise give it a look?
Related issue: https://github.com/ianharrigan/haxeui/issues/352
Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.