Fix navigation to data class copy function

This commit is contained in:
Alexander Udalov
2014-09-19 11:44:34 +04:00
parent bf7a295ace
commit 04bb43e907
3 changed files with 14 additions and 1 deletions
@@ -421,7 +421,7 @@ public class DescriptorResolver {
Annotations.EMPTY,
COPY_METHOD_NAME,
CallableMemberDescriptor.Kind.SYNTHESIZED,
SourceElement.NO_SOURCE
classDescriptor.getSource()
);
List<ValueParameterDescriptor> parameterDescriptors = Lists.newArrayList();
@@ -0,0 +1,7 @@
package test
data class D(val x: Int)
val aaa = D(42).co<caret>py()
// REF: (test).D
@@ -93,6 +93,12 @@ public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest
doTest(fileName);
}
@TestMetadata("DataClassCopy.kt")
public void testDataClassCopy() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/references/DataClassCopy.kt");
doTest(fileName);
}
@TestMetadata("DontImportRootScope.kt")
public void testDontImportRootScope() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/references/DontImportRootScope.kt");