java-decompiler: extra casts on method calls omitted
(loosely based on https://github.com/JetBrains/intellij-community/pull/217)
This commit is contained in:
16
testData/src/pkg/TestAmbiguousCall.java
Normal file
16
testData/src/pkg/TestAmbiguousCall.java
Normal file
@@ -0,0 +1,16 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user