KT-1294 Class rename fails to update import statement and breaks the code - test for kotlin class rename
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
package testing.first
|
||||
|
||||
public open class Third {
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package testing.second
|
||||
|
||||
import testing.first.Third
|
||||
import testing.*
|
||||
import java.util.ArrayList
|
||||
|
||||
// Extends testing.first.Third
|
||||
public class Second : Third() {
|
||||
val temp : testing.first.Third = Third()
|
||||
|
||||
fun tempName(param : Third) : first.Third {
|
||||
val local = Third()
|
||||
val otherLocal = param
|
||||
val arr = ArrayList<Third>()
|
||||
|
||||
return testing.first.Third()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package testing.first
|
||||
|
||||
public open class First {
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package testing.second
|
||||
|
||||
import testing.first.First
|
||||
import testing.*
|
||||
import java.util.ArrayList
|
||||
|
||||
// Extends testing.first.First
|
||||
public class Second : First() {
|
||||
val temp : testing.first.First = First()
|
||||
|
||||
fun tempName(param : First) : first.First {
|
||||
val local = First()
|
||||
val otherLocal = param
|
||||
val arr = ArrayList<First>()
|
||||
|
||||
return testing.first.First()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user