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
47 lines
939 B
Kotlin
Vendored
47 lines
939 B
Kotlin
Vendored
object A {
|
|
@JvmStatic
|
|
fun main(args: Array<String>) {
|
|
val ANDAND = (true
|
|
&& true
|
|
&& true)
|
|
val OROR = (true
|
|
|| true
|
|
|| true)
|
|
val PLUS = (1
|
|
+ 2
|
|
+ 3)
|
|
val MINUS = (1
|
|
- 2
|
|
- 3)
|
|
val ASTERISK = (1
|
|
* 2
|
|
* 3)
|
|
val DIV = (1
|
|
|
|
/ 2
|
|
|
|
|
|
/ 3)
|
|
val PERC = (1
|
|
% 2
|
|
% 3)
|
|
val GTGT = (1
|
|
shl 2
|
|
shl 3)
|
|
val LTLT = (1
|
|
shr 2
|
|
shr 3)
|
|
val XOR = (1
|
|
xor 2
|
|
xor 3)
|
|
val AND = (1
|
|
and 2
|
|
and 3)
|
|
val OR = (1
|
|
% 2
|
|
% 3)
|
|
val GTGTGT = (1
|
|
ushr 2
|
|
ushr 3)
|
|
}
|
|
} |