blob: 0189329f9d16fa2d6a7e2e100c176b5e7114c60c [file]
package pkg;
class TestAmbiguousCall {
void m1(RuntimeException e, String s) { }
void m1(IllegalArgumentException e, String s) { }
void test() {
IllegalArgumentException iae = new IllegalArgumentException();
m1((RuntimeException)iae, "RE");
m1(iae, "IAE");
RuntimeException re = new IllegalArgumentException();
m1(re, "RE");
m1((IllegalArgumentException)re, "IAE");
}
}