Skip to content

Weird formatting of nested array comprehension #366

Closed
@Gama11

Description

@Gama11

Input file

class Main {
	static function main() {
		var grid = [
			for (x in 0...gridSize.x + 1) [
				for (y in 0...gridSize.y + 1) {
					new Point(x, y);
				}
			]
		];
	}
}

Broken output

class Main {
	static function main() {
		var grid = [
			for (x in 0...gridSize.x + 1)
				[
					for (y in 0...gridSize.y + 1) {
						new Point(x, y);
					}
				]];
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwrappingIncorrect or undesirable wrapping

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions