Files
kotlin-fork/idea/testData/formatter/BinaryExpressionsWithoutAlignment.kt
T
Nikolay Krasko 05b2443988 Make assignment indent conforms with indent for expression bodies (KT-28484)
Do not make plain list of binary expression for assignment expressions.

 #KT-28484 Fixed
2018-11-29 13:31:07 +03:00

39 lines
357 B
Kotlin
Vendored

fun test() {
var a = 12
a =
12
a +=
12
a -=
12
a *=
12
a /=
12
a is
String
a !is
String
a as
String
a as?
String
a in
1..2
a !in
1..2
}
// SET_TRUE: ALIGN_MULTILINE_BINARY_OPERATION
// SET_FALSE: CONTINUATION_INDENT_FOR_EXPRESSION_BODIES