Move to Companion Intention: Do not use qualified names as labels
#KT-11483 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// WITH_RUNTIME
|
||||
package foo
|
||||
|
||||
class InsertThis {
|
||||
val v1 = 1
|
||||
fun <caret>f() {
|
||||
println(v1)
|
||||
}
|
||||
fun use() { f() }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// WITH_RUNTIME
|
||||
package foo
|
||||
|
||||
class InsertThis {
|
||||
val v1 = 1
|
||||
fun use() {
|
||||
Companion.f(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun f(insertThis: InsertThis) {
|
||||
println(insertThis.v1)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user