Don't ruin indentation for comments inside expression declarations (KT-23295)

#KT-23295 Fixed
This commit is contained in:
Nikolay Krasko
2018-12-24 21:43:26 +03:00
parent 36a6c0881c
commit 571ee4a1fe
5 changed files with 60 additions and 6 deletions
@@ -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
+17
View File
@@ -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