haxeui-core icon indicating copy to clipboard operation
haxeui-core copied to clipboard

Haxe 5.0 compile errors

Open onehundredfeet opened this issue 1 year ago • 3 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:

onehundredfeet avatar Mar 20 '24 04:03 onehundredfeet

Hey, I solved this with the following changes https://github.com/haxeui/haxeui-core/pull/575

Jarrio avatar Mar 20 '24 10:03 Jarrio

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

onehundredfeet avatar Mar 20 '24 14:03 onehundredfeet

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

Jarrio avatar Mar 20 '24 14:03 Jarrio