Files
kotlin-fork/idea/testData/formatter/SpacesInQualifiedExpressions.kt
T
Dmitry Gridin b6b755506c Formatter: support Chop down if long for Chained method calls
#KT-23929 Fixed
#KT-33553 Fixed
2019-11-26 19:40:51 +07:00

45 lines
437 B
Kotlin
Vendored

interface Test {
fun foo(): Test
}
fun test(t: Test) {
t . foo()
t() . foo()
t() !! . foo() .foo()
( ( t() !!) . foo() .foo() .foo()) .foo()
t.
foo()
t.
foo()
t
.foo()
t.foo() . foo()
t ?. foo()
t?.
foo()
t?.
foo()
t
?.foo()
t?.foo() ?. foo()
}