test data for IDEA-21660

This commit is contained in:
anna
2012-04-09 13:07:33 +02:00
parent 7255e91447
commit e53c751c96
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,15 @@
package pck;
class TestCase {
void assertEquals(Object o1, Object o2) {}
void assertEquals(int i1, int i2) {}
}
class Test extends TestCase {
void test() {
int expected = 1;
Integer actual = 2;
assertEquals<error descr="Ambiguous method call: both 'TestCase.assertEquals(Object, Object)' and 'TestCase.assertEquals(int, int)' match">(expected, actual)</error>;
}
}
@@ -177,4 +177,8 @@ public class AdvHighlightingJdk7Test extends DaemonAnalyzerTestCase {
doTestAmbiguous();
}
public void testAmbiguousIDEA21660() throws Exception {
doTestAmbiguous();
}
}