haxeui / haxeui-core

The core library of the HaxeUI framework

Home Page:http://haxeui.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Haxe 5.0 compile errors

onehundredfeet opened this issue · comments

I switched to haxe 5.0 and am getting this error:

.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:359: characters 20-47 : Recursive operator method
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:359: characters 20-30 : haxe.ui.util.VariantType should be Int
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:359: characters 20-30 : haxe.ui.util.VariantType should be Int
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:359: characters 20-47 : The result of this operation (Int) is not compatible with declared return type haxe.ui.util.Variant
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:368: characters 20-47 : Recursive operator method
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:368: characters 20-30 : haxe.ui.util.VariantType should be Int
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:368: characters 20-30 : haxe.ui.util.VariantType should be Int
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:368: characters 20-47 : The result of this operation (Float) is not compatible with declared return type haxe.ui.util.Variant

Expected Behavior

No compile errors.

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

1.Get the latest Haxe from git
2.Compile
3.Install
4.Build any haxeui project

Media

.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:359: characters 20-47 : Recursive operator method
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:359: characters 20-30 : haxe.ui.util.VariantType should be Int
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:359: characters 20-30 : haxe.ui.util.VariantType should be Int
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:359: characters 20-47 : The result of this operation (Int) is not compatible with declared return type haxe.ui.util.Variant
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:368: characters 20-47 : Recursive operator method
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:368: characters 20-30 : haxe.ui.util.VariantType should be Int
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:368: characters 20-30 : haxe.ui.util.VariantType should be Int
.haxelib/haxeui-core/git/haxe/ui/util/Variant.hx:368: characters 20-47 : The result of this operation (Float) is not compatible with declared return type haxe.ui.util.Variant

Test app / minimal test case

Context

Your Environment

  • Version used:
    haxe --version
    5.0.0-alpha.1
    haxeui - 1.6 & latest git

  • Environment name and version (e.g. Chrome 39, node.js 5.4): hashlink, heaps

  • Operating System and version (desktop or mobile):OSX

  • Link to your project:

Hey, I solved this with the following changes #575

Awesome! When will it be merged into the main branch?

I'm not sure, there's a compatibility issue with haxe 4.2.5