class A { fun foo() = this inline fun bar() = this } fun foo() { val a = A() a.foo() .foo() a.bar() .bar() } // 2 3 1 7 8 +9 +8 9 11 +12 +11 16 12 17 13