31596f0d0b
#KT-35388 Fixed
41 lines
782 B
Kotlin
Vendored
41 lines
782 B
Kotlin
Vendored
val x = foo.bar().baz().quux()
|
|
|
|
val x2 = foo().bar().baz().quux()
|
|
|
|
val x3 = ((foo().bar())).baz().quux()
|
|
|
|
val x4 = (foo().bar().baz()).quux()
|
|
|
|
val x5 = (foo()).bar().baz().quux()
|
|
|
|
val x6 = foo!!.bar().baz()!!.quux()!!
|
|
|
|
val x7 = foo!!.bar().baz()!!.quux()!!
|
|
|
|
val x8 = foo!!!!!!!!.bar().baz()!!.quux()!!
|
|
|
|
val x9 = ((b!!)!!!!)!!.f
|
|
|
|
val y = xyzzy(foo.bar().baz().quux())
|
|
|
|
fun foo() {
|
|
foo.bar().baz().quux()
|
|
|
|
z = foo.bar().baz().quux()
|
|
|
|
z += foo.bar().baz().quux()
|
|
|
|
return foo.bar().baz().quux()
|
|
}
|
|
|
|
fun top() = "".plus("").plus("")
|
|
class C {
|
|
fun member() = "".plus("").plus("")
|
|
}
|
|
fun foo() {
|
|
fun local() = "".plus("").plus("")
|
|
val anonymous = fun() = "".plus("").plus("")
|
|
}
|
|
|
|
// SET_INT: METHOD_CALL_CHAIN_WRAP = 2
|
|
// SET_FALSE: WRAP_FIRST_METHOD_IN_CALL_CHAIN |