Navigation: Resolve typealiased SAM-references to type alias declaration
#KT-15302 Fixed
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
public interface Runnable {
|
||||
public abstract void run();
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
typealias S = Runnable
|
||||
val r1 = S {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface Runnable {
|
||||
public abstract void run();
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
typealias /*rename*/R = Runnable
|
||||
val r1 = R {}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test/test.kt",
|
||||
"newName": "S",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
+6
@@ -1285,6 +1285,12 @@ public class RenameTestGenerated extends AbstractRenameTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("samConstructorTypeAlias/samConstructorTypeAlias.test")
|
||||
public void testSamConstructorTypeAlias_SamConstructorTypeAlias() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/refactoring/rename/samConstructorTypeAlias/samConstructorTypeAlias.test");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("secondaryCnstructorParameterRedeclaration/secondaryConstructorParameterRedeclaration.test")
|
||||
public void testSecondaryCnstructorParameterRedeclaration_SecondaryConstructorParameterRedeclaration() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/refactoring/rename/secondaryCnstructorParameterRedeclaration/secondaryConstructorParameterRedeclaration.test");
|
||||
|
||||
Reference in New Issue
Block a user