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

Braceless anonymous functions break final functions #60

Open
SpiraTom opened this issue Jan 24, 2024 · 0 comments
Open

Braceless anonymous functions break final functions #60

SpiraTom opened this issue Jan 24, 2024 · 0 comments

Comments

@SpiraTom
Copy link

Using braceless anonymous function break the following final functions

public function iter( fct : Void -> Void ) { }

function bracelessFunction() {
	iter(function() trace("Braceless") );
}

public final function foo() : Float {
	var array = [];
	while( array.length < 10 ) {
		array.push(Std.random(10));
	}
	return 1.0;
}

As a result, foo() is incorrectly colored
image

Similar to #19

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