Don't ruin indentation for comments inside expression declarations (KT-23295)
#KT-23295 Fixed
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
fun foo() =
|
||||
// comment
|
||||
1
|
||||
|
||||
val some =
|
||||
// Comment
|
||||
2
|
||||
|
||||
fun some() {
|
||||
val (a, b) =
|
||||
// Some
|
||||
1 to 3
|
||||
}
|
||||
|
||||
fun nice() =
|
||||
/* Ha! */
|
||||
2
|
||||
@@ -0,0 +1,17 @@
|
||||
fun foo() =
|
||||
// comment
|
||||
1
|
||||
|
||||
val some =
|
||||
// Comment
|
||||
2
|
||||
|
||||
fun some() {
|
||||
val (a, b) =
|
||||
// Some
|
||||
1 to 3
|
||||
}
|
||||
|
||||
fun nice() =
|
||||
/* Ha! */
|
||||
2
|
||||
Reference in New Issue
Block a user