Test for KT-2890

# KT-2890 can't reproduce
This commit is contained in:
Pavel V. Talanov
2012-11-23 16:05:42 +04:00
parent 5fa069bebd
commit 997e26d11e
2 changed files with 25 additions and 0 deletions
@@ -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");