Formatter: fix some cases of call chain with wrap first call chain

#KT-35388 Fixed
This commit is contained in:
Dmitry Gridin
2019-12-10 15:44:49 +07:00
parent e7ff0315d4
commit 31596f0d0b
8 changed files with 386 additions and 17 deletions
@@ -2,6 +2,34 @@ 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())