Inspection for scope functions conversion
#KT-17047 Fixed
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
class C {
|
||||
fun foo() = "c"
|
||||
val bar = "C"
|
||||
}
|
||||
|
||||
class D {
|
||||
fun foo() = "d"
|
||||
val bar = "D"
|
||||
|
||||
}
|
||||
|
||||
val d = D()
|
||||
val x = d.apply {
|
||||
C().<caret>run {
|
||||
this@apply.foo() + foo() + this@apply.bar + bar
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user