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

Indentation with untyped assignment #326

Closed
Gama11 opened this issue Feb 6, 2019 · 0 comments · Fixed by #352
Closed

Indentation with untyped assignment #326

Gama11 opened this issue Feb 6, 2019 · 0 comments · Fixed by #352
Labels
bug Something isn't working indentation Indentation is incorrect
Milestone

Comments

@Gama11
Copy link
Member

Gama11 commented Feb 6, 2019

Describe the bug

(foo).bar already triggers it too, so it's not about the untyped itself:

Input / Expected

class Main {
	public static function main() {
		(untyped foo).bar = function() {
			trace();
		}
	}
}

Broken output

class Main {
	public static function main() {
		(untyped foo).bar = function() {
				trace();
			}
	}
}
@Gama11 Gama11 added bug Something isn't working indentation Indentation is incorrect labels Feb 6, 2019
@Gama11 Gama11 added this to the haxe milestone Feb 6, 2019
AlexHaxe added a commit to AlexHaxe/haxe-formatter that referenced this issue Feb 16, 2019
AlexHaxe added a commit that referenced this issue Feb 16, 2019
* fixed indentation for anon function calls, fixes #315
* fixed indentation of untyped assignment, fixes #326
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working indentation Indentation is incorrect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant