ianharrigan / haxeui

IMPORTANT NOTE! This repository is no longer maintained. Please consider the newer version: https://github.com/haxeui/haxeui-core
http://haxeui.org/
392 stars 46 forks source link

Can't compile simple test with Haxe 3.3.0 RC #352

Closed ex closed 8 years ago

ex commented 8 years ago

I'm trying to compile this simple test: https://github.com/ex/haxe/tree/master/haxeui with haxeui github version and it's failing to compile with Haxe night build:

    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) }
        }
    }
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

Is this something that need to be addressed in haxeui? or is it a Haxe regression? because there are some regressions right now and we better report this issue now. I'd like to use haxeui with new improvements in Haxe 3.3.0, please help.