Convert to scope function: enable on single function call
#KT-29099 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
e1fdf0aa43
commit
5f7dee4194
+16
@@ -0,0 +1,16 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
class MyClass {
|
||||
fun foo1(a: MyClass): MyClass = this
|
||||
fun foo2(): MyClass = this
|
||||
fun foo3(): MyClass = this
|
||||
|
||||
fun foo4(a: MyClass) {
|
||||
a.foo1(this).foo2().foo3()
|
||||
a.run {
|
||||
foo2()
|
||||
foo3()
|
||||
}
|
||||
a.foo1(this).foo2().foo3()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user