KT-112 Cannot rename a class on a constructor call site
#KT-112 Obsolete
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
class TestX(val x : Int) {
|
||||
}
|
||||
|
||||
val x = TestX(1)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
class X(val x : Int) {
|
||||
}
|
||||
|
||||
val x = X(1)
|
||||
@@ -33,10 +33,10 @@ import org.jetbrains.jet.lang.descriptors.FunctionDescriptor;
|
||||
import org.jetbrains.jet.lang.psi.JetFile;
|
||||
import org.jetbrains.jet.lang.resolve.BindingContext;
|
||||
import org.jetbrains.jet.lang.resolve.BindingContextUtils;
|
||||
import org.jetbrains.jet.lang.resolve.name.FqName;
|
||||
import org.jetbrains.jet.lang.resolve.name.Name;
|
||||
import org.jetbrains.jet.lang.resolve.scopes.JetScope;
|
||||
import org.jetbrains.jet.lang.types.TypeProjection;
|
||||
import org.jetbrains.jet.lang.resolve.name.FqName;
|
||||
import org.jetbrains.jet.plugin.PluginTestCaseBase;
|
||||
import org.jetbrains.jet.plugin.project.WholeProjectAnalyzerFacade;
|
||||
|
||||
@@ -71,6 +71,10 @@ public class RenameInKotlinTest extends MultiFileTestCase {
|
||||
doTestWithRenameMethod(new FqName("testing.rename.C"), "first", "second");
|
||||
}
|
||||
|
||||
public void testRenameKotlinClassConstructor() throws Exception {
|
||||
doTestWithRenameClass(new FqName("X"), "TestX");
|
||||
}
|
||||
|
||||
private void doTestWithRenameMethod(final FqName qClassName, final String oldMethodName, String newMethodName) throws Exception {
|
||||
doTestWithRename(new Function<PsiFile, PsiElement>() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user