You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ echo $'fun test() {
val variable = first
?: second
}' > test.kt
$ ./ktlint -F --experimental test.kt
Expected:
fun test() {
val variable = first
?: second
}
Actual:
fun test() {
val variable =
first
?: second
}
Seems to have something to do with the elvis operator; I haven't gotten it to break otherwise. Also works fine if the elvis operator is on the same line. Also,
fun test() {
val variable = first
second
}
produces
fun test() {
val variable = first
second
}
as expected.
The text was updated successfully, but these errors were encountered:
shashachu
changed the title
IndentationRule inserting unnecessary line break after assignment followed by elvis operator
IndentationRule inserting unnecessary line break after assignment followed by any continuation
Apr 8, 2019
Expected:
Actual:
Seems to have something to do with the elvis operator; I haven't gotten it to break otherwise. Also works fine if the elvis operator is on the same line. Also,
produces
as expected.
The text was updated successfully, but these errors were encountered: