[kotlin] Add test with mutable list

^KTIJ-31955 Fixed

GitOrigin-RevId: 3bcf5bca06237c08d54e4528f382cf09ea476c2b
This commit is contained in:
Victoria.Petrakovich
2025-08-28 19:16:02 +00:00
committed by intellij-monorepo-bot
parent da65c14e88
commit 58b4770d49
3 changed files with 18 additions and 0 deletions
@@ -1784,6 +1784,11 @@ public abstract class SharedK1LocalInspectionTestGenerated extends AbstractShare
public void testReverseImmutableList() throws Exception {
runTest("../testData/inspectionsLocal/javaCollectionsStaticMethodOnImmutableList/reverseImmutableList.kt");
}
@TestMetadata("reverseMutableList.kt")
public void testReverseMutableList() throws Exception {
runTest("../testData/inspectionsLocal/javaCollectionsStaticMethodOnImmutableList/reverseMutableList.kt");
}
}
@RunWith(JUnit3RunnerWithInners.class)
@@ -1784,6 +1784,11 @@ public abstract class SharedK2LocalInspectionTestGenerated extends AbstractShare
public void testReverseImmutableList() throws Exception {
runTest("../testData/inspectionsLocal/javaCollectionsStaticMethodOnImmutableList/reverseImmutableList.kt");
}
@TestMetadata("reverseMutableList.kt")
public void testReverseMutableList() throws Exception {
runTest("../testData/inspectionsLocal/javaCollectionsStaticMethodOnImmutableList/reverseMutableList.kt");
}
}
@RunWith(JUnit3RunnerWithInners.class)
@@ -0,0 +1,8 @@
// WITH_STDLIB
// PROBLEM: none
import java.util.Collections
fun test() {
val mutableList = mutableListOf(1, 2)
Collections.reverse<caret>(mutableList)
}