Move Refactoring: Do not replace references to local declaration with qualified names. Update and fix test data
#KT-4851 Fixed
This commit is contained in:
+12
@@ -15,4 +15,16 @@ var test: String
|
||||
val aBar: a.Foo.Bar = a.Foo.Bar()
|
||||
val bBar: Foo.Bar = Foo.Bar()
|
||||
val cBar: c.Foo.Bar = c.Foo.Bar()
|
||||
|
||||
fun foo(u: Int) {
|
||||
class T(val t: Int)
|
||||
object O {
|
||||
val t: Int = 1
|
||||
}
|
||||
|
||||
val v = T(u).t + O.t
|
||||
println(v)
|
||||
}
|
||||
|
||||
foo(1)
|
||||
}
|
||||
+12
@@ -9,6 +9,18 @@ var <caret>test: String
|
||||
val aBar: Foo.Bar = Foo.Bar()
|
||||
val bBar: b.Foo.Bar = b.Foo.Bar()
|
||||
val cBar: c.Foo.Bar = c.Foo.Bar()
|
||||
|
||||
fun foo(u: Int) {
|
||||
class T(val t: Int)
|
||||
object O {
|
||||
val t: Int = 1
|
||||
}
|
||||
|
||||
val v = T(u).t + O.t
|
||||
println(v)
|
||||
}
|
||||
|
||||
foo(1)
|
||||
}
|
||||
|
||||
class Test {
|
||||
|
||||
Reference in New Issue
Block a user