Move to Companion Intention: Do not use qualified names as labels

#KT-11483 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-31 17:51:07 +03:00
parent 78a4e90132
commit 23491afde2
5 changed files with 33 additions and 1 deletions
@@ -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)
}
}
}