Skip to content

sometimes build-error with haxe 4.1.4: "{ m_type : jasper.SymbolType } should be jasper.Symbol" #6

Description

@maitag

Hi, while trying around (haxe 4.1.4) i get sometimes this error:
SolverImpl.hx:662: characters 57-65 : { m_type : jasper.SymbolType } should be jasper.Symbol

With haxe 3.4.4 it builds without error, so its maybe with the key-value-iterator since 4 ?

here is little snippet here where it appears: Main.txt

package;
import jasper.Solver;
import jasper.Strength;
import jasper.Variable;

class Main {
	static function main() {}
}

class Test {
	private var solver:Solver = new Solver();
	private var _x:Variable = new Variable();
	
	public var x(get,set):Float;
	// getter
	function get_x():Float return _x.m_value;
	// setter
	function set_x(value:Float):Float 
	{
		// in haxe 4.1.4 build-error in SolverImpl.hx:662 (667, 480, 637, 686):
		// "{ m_type : jasper.SymbolType } should be jasper.Symbol"
		solver.suggestValue(_x, value);

		return value;
	}

	public function new() {
		solver.addEditVariable(_x, Strength.MEDIUM);
	}
}

Get this also into some other cases e.g. if i move the addEventListener()
some lines up before the layout is initialized here:
https://github.com/maitag/peote-layout/blob/main/samples/openfl-sprites/Source/Main.hx#L68

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions