Test for KT-2890
# KT-2890 can't reproduce
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
//FILE:_03_collections/CollectionTest.java
|
||||
package _03_collections;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class CollectionTest {
|
||||
public static void add(List<Integer> ints) {
|
||||
ints.add(5);
|
||||
}
|
||||
}
|
||||
|
||||
//FILE:n.kt
|
||||
package _03_collections
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
fun test() {
|
||||
val <!UNUSED_VARIABLE!>c<!> = CollectionTest()
|
||||
CollectionTest.add(ArrayList())
|
||||
}
|
||||
@@ -2242,6 +2242,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
||||
doTest("compiler/testData/diagnostics/tests/j+k/kt2641.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2890.kt")
|
||||
public void testKt2890() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/j+k/kt2890.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mutableIterator.kt")
|
||||
public void testMutableIterator() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/j+k/mutableIterator.kt");
|
||||
|
||||
Reference in New Issue
Block a user