mirror of
https://github.com/moparisthebest/fernflower
synced 2024-12-03 22:42:16 -05:00
19 lines
473 B
Plaintext
19 lines
473 B
Plaintext
|
package pkg;
|
||
|
|
||
|
class TestAmbiguousCall {
|
||
|
void m1(RuntimeException e, String s) {
|
||
|
}
|
||
|
|
||
|
void m1(IllegalArgumentException e, String s) {
|
||
|
}
|
||
|
|
||
|
void test() {
|
||
|
IllegalArgumentException iae = new IllegalArgumentException();
|
||
|
this.m1((RuntimeException)iae, "RE");
|
||
|
this.m1(iae, "IAE");
|
||
|
IllegalArgumentException re = new IllegalArgumentException();
|
||
|
this.m1((RuntimeException)re, "RE");
|
||
|
this.m1((IllegalArgumentException)re, "IAE");
|
||
|
}
|
||
|
}
|