Format functions with function literal arguments (KT-2934)
#KT-2934 Fixed
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
trait Test {
|
||||
fun foo(): Test
|
||||
}
|
||||
|
||||
fun test(t: Test) {
|
||||
t . foo()
|
||||
|
||||
t.
|
||||
foo()
|
||||
|
||||
t.
|
||||
|
||||
|
||||
foo()
|
||||
|
||||
t
|
||||
|
||||
|
||||
|
||||
.foo()
|
||||
|
||||
|
||||
t.foo() . foo()
|
||||
|
||||
|
||||
t ?. foo()
|
||||
|
||||
t?.
|
||||
foo()
|
||||
|
||||
t?.
|
||||
|
||||
|
||||
foo()
|
||||
|
||||
t
|
||||
|
||||
|
||||
|
||||
?.foo()
|
||||
|
||||
t?.foo() ?. foo()
|
||||
}
|
||||
Reference in New Issue
Block a user