Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maitag opened this issue Dec 14, 2020 · 0 comments

Comments

@maitag
Copy link

maitag commented Dec 14, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant