v icon indicating copy to clipboard operation
v copied to clipboard

Automatic formatting mangles up code

Open ghost opened this issue 7 years ago • 1 comments

In playground, automatic formatting mangles up code:

Following program gets mangled:

const (
	A = 1
	/*B = 2*/
)

fn main() {
	println(A)
}

and after compiler auto formats the source code becomes:

 const (
	A         = 1
	/*B = 2*/ = fn main() {
	println   =A)	
)

image

ghost avatar Jun 17 '19 16:06 ghost

We took the Playground offline. You're welcome.

Bowero avatar Jun 26 '19 19:06 Bowero