Set source elements for java enum entries
#KT-4277 Fixed
This commit is contained in:
+1
-1
@@ -227,7 +227,7 @@ public class LazyJavaClassMemberScope(
|
||||
EnumEntrySyntheticClassDescriptor.create(c.storageManager, getContainingDeclaration(), name,
|
||||
c.storageManager.createLazyValue {
|
||||
memberIndex().getAllFieldNames() + memberIndex().getAllMethodNames()
|
||||
}, SourceElement.NO_SOURCE)
|
||||
}, c.sourceElementFactory.source(field))
|
||||
}
|
||||
else null
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.R<caret>UNTIME)
|
||||
annotation class Anno()
|
||||
|
||||
// REF: (in java.lang.annotation.RetentionPolicy).RUNTIME
|
||||
@@ -137,6 +137,11 @@ public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest
|
||||
doTest("idea/testData/resolve/references/InSecondClassObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("JavaEnumEntry.kt")
|
||||
public void testJavaEnumEntry() throws Exception {
|
||||
doTest("idea/testData/resolve/references/JavaEnumEntry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("JavaParameter.kt")
|
||||
public void testJavaParameter() throws Exception {
|
||||
doTest("idea/testData/resolve/references/JavaParameter.kt");
|
||||
|
||||
Reference in New Issue
Block a user