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

Arguments misbehaving on nightly #694

Closed
Geokureli opened this issue Jun 26, 2024 · 1 comment
Closed

Arguments misbehaving on nightly #694

Geokureli opened this issue Jun 26, 2024 · 1 comment

Comments

@Geokureli
Copy link

Geokureli commented Jun 26, 2024

Looks like foo(false, true, true, false) actually passes (false, true, true, true) for some reason, but only with static functions

This should recreate the issue:

class Test
{
	static function main()
	{
		new HLArithTest().create();
	}
}

class HLArithTest// extends flixel.FlxState
{
	public function new () {}
	
	//override
	public function create()
	{
		// only true in nightly HL
		trace(checkDownStatic(false, true, true, false));
		
		// no issues
		trace(checkDownInstance(false, true, true, false));
	}
	
	public static function checkDownStatic(left:Bool, right:Bool, up:Bool, down:Bool)
	{
		return down;
	}
	
	public function checkDownInstance(left:Bool, right:Bool, up:Bool, down:Bool)
	{
		return down;
	}
}

small note, my actual test was in an instance of a class extending FlxState, but I'm sure this will repro, just the same

@Geokureli Geokureli changed the title Arguments misbehavng on nightly Arguments misbehaving on nightly Jun 26, 2024
@Apprentice-Alchemist
Copy link
Contributor

Appears to be caused by 068bb35

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

2 participants