f0035a7be0
When there is multiline polyadic expression with some operators J2K should keep surrounding parentheses, otherwise operators will be dangling due resolved to prefix variant #KT-17379 fixed
20 lines
355 B
Kotlin
Vendored
20 lines
355 B
Kotlin
Vendored
package demo
|
|
|
|
internal class Test {
|
|
fun test() {
|
|
val a = 0
|
|
val b = 1
|
|
val c = 2
|
|
val d = 4
|
|
val y = (a // polyadic expression case
|
|
|
|
+ b // x2
|
|
|
|
+ c // x3
|
|
|
|
+ d) // x4
|
|
val z = (a // binary expression case
|
|
+ b) // x4
|
|
val j = b + c
|
|
}
|
|
} |