Regression test for old issue
#KT-7656 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtProperty
|
||||
// OPTIONS: usages
|
||||
data class A(public val field: Int) {
|
||||
public val field<caret>: String
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a = A(10)
|
||||
|
||||
println(a.field)
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Unclassified usage (10: 15) println(a.field)
|
||||
@@ -1001,6 +1001,12 @@ public class FindUsagesTestGenerated extends AbstractFindUsagesTest {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/findUsages/kotlin/findPropertyUsages/kotlinTopLevelPropertyUsages.0.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt7656.0.kt")
|
||||
public void testKt7656() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/findUsages/kotlin/findPropertyUsages/kt7656.0.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("idea/testData/findUsages/kotlin/findSecondaryConstructorUsages")
|
||||
|
||||
Reference in New Issue
Block a user