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

Tricky arrow functions #580

Open
Gama11 opened this issue Apr 12, 2020 · 0 comments
Open

Tricky arrow functions #580

Gama11 opened this issue Apr 12, 2020 · 0 comments
Labels
bug Something isn't working whitespace missing or incorrect space around token

Comments

@Gama11
Copy link
Member

Gama11 commented Apr 12, 2020

Correct formatting:

class Main {
	static function main() {
		f7 = (f:Int->Int) -> f;
		f7 = maybe() ? f -> f : f -> g -> f(g);
	}
}

Formatter turns it into this:

class Main {
	static function main() {
		f7 = (f:Int->Int)->f;
		f7 = maybe() ? f->f : f -> g->f(g);
	}
}

From here, not a regression.

@Gama11 Gama11 added bug Something isn't working whitespace missing or incorrect space around token labels Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working whitespace missing or incorrect space around token
Projects
None yet
Development

No branches or pull requests

1 participant