[kotlin] add test for obsolete issue

^KTIJ-5382

GitOrigin-RevId: 097f0cef57395f8d2460883400b5446f1c390f52
This commit is contained in:
Alexey Belkov
2023-03-03 11:03:10 +00:00
committed by intellij-monorepo-bot
parent 864d555a43
commit dedb1d3a77
3 changed files with 21 additions and 0 deletions
@@ -49,6 +49,11 @@ public abstract class FirParameterInfoTestGenerated extends AbstractFirParameter
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
@TestMetadata("ktij-5382.kt")
public void testKtij_5382() throws Exception {
runTest("../idea/tests/testData/parameterInfo/arrayAccess/ktij-5382.kt");
}
@TestMetadata("Overloads.kt")
public void testOverloads() throws Exception {
runTest("../idea/tests/testData/parameterInfo/arrayAccess/Overloads.kt");
@@ -49,6 +49,11 @@ public abstract class ParameterInfoTestGenerated extends AbstractParameterInfoTe
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
@TestMetadata("ktij-5382.kt")
public void testKtij_5382() throws Exception {
runTest("testData/parameterInfo/arrayAccess/ktij-5382.kt");
}
@TestMetadata("Overloads.kt")
public void testOverloads() throws Exception {
runTest("testData/parameterInfo/arrayAccess/Overloads.kt");
@@ -0,0 +1,11 @@
fun test() {
val a = arrayOf(1,2)
assertEquals(0, a[<caret>0])
}
fun <T> assertEquals(expected: T, actual: T, message: String? = null) {
}
/*
Text: (<highlight>index: Int</highlight>), Disabled: false, Strikeout: false, Green: true
*/