3cffb33ab7
This feature is not needed because it is unconditionally disabled for K1 (because of not fully correct implementation) and unconditionally enabled in K2 (K2 does not support old behavior) ^KT-38895
21 lines
366 B
Kotlin
Vendored
21 lines
366 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// ISSUE: Kt-47447, KT-47729
|
|
|
|
fun takeLong(x: Long) {}
|
|
|
|
object Foo {
|
|
var longProperty: Long = 0
|
|
|
|
infix fun infixOperator(x: Long) {}
|
|
}
|
|
|
|
// Should be ok in all places
|
|
fun test() {
|
|
takeLong(1 + 1)
|
|
takeLong((1 + 1))
|
|
Foo.longProperty = 1 + 1
|
|
Foo.longProperty = (1 + 1)
|
|
Foo infixOperator 1 + 1
|
|
Foo infixOperator (1 + 1)
|
|
}
|