Test for KT-4100 'Imports doesn't change after java interface name refactoring'
#KT-4100 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package kotlin.testing
|
||||
|
||||
import testing.NewInterfaceName
|
||||
|
||||
class Some(s: NewInterfaceName) : NewInterfaceName() {
|
||||
val test = s
|
||||
|
||||
fun testFun(param : NewInterfaceName) : NewInterfaceName {
|
||||
return test;
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package testing;
|
||||
|
||||
public interface NewInterfaceName {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package kotlin.testing
|
||||
|
||||
import testing.SomeInterface
|
||||
|
||||
class Some(s: SomeInterface) : SomeInterface() {
|
||||
val test = s
|
||||
|
||||
fun testFun(param : SomeInterface) : SomeInterface {
|
||||
return test;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package testing;
|
||||
|
||||
public interface SomeInterface {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
// RENAME: JAVA_CLASS->testing.SomeInterface->NewInterfaceName
|
||||
|
||||
// For KT-4100 Imports doesn't change after java interface name refactoring
|
||||
Reference in New Issue
Block a user