KT-1294 Class rename fails to update import statement and breaks the code - test for kotlin class rename

This commit is contained in:
Nikolay Krasko
2012-02-20 15:54:05 +04:00
parent 300fafc90d
commit 1e2ef9fbf1
5 changed files with 126 additions and 0 deletions
@@ -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()
}
}