ListenerOverload Test

This commit is contained in:
JanUlrich 2018-09-26 16:21:10 +02:00
parent f46d26e53f
commit 88e2366eab
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,20 @@
import java.lang.Integer;
import java.lang.String;
class ListenerOverload{
call(p){
call(p.left);
call(p.right);
}
call(Integer i){}
call(String s){}
}
class Pair<A,B>{
A left;
B right;
}

View File

@ -104,6 +104,10 @@ public class JavaTXCompilerTest {
public void multipleSolutions() throws IOException, ClassNotFoundException {
execute(new File(rootDirectory+"Sorting.jav"));
}
@Test
public void listenerTest() throws IOException, ClassNotFoundException {
execute(new File(rootDirectory+"ListenerOverload.jav"));
}
private static class TestResultSet{