forked from JavaTX/JavaCompilerCore
ListenerOverload Test
This commit is contained in:
parent
f46d26e53f
commit
88e2366eab
20
test/javFiles/ListenerOverload.jav
Normal file
20
test/javFiles/ListenerOverload.jav
Normal 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;
|
||||||
|
}
|
@ -104,6 +104,10 @@ public class JavaTXCompilerTest {
|
|||||||
public void multipleSolutions() throws IOException, ClassNotFoundException {
|
public void multipleSolutions() throws IOException, ClassNotFoundException {
|
||||||
execute(new File(rootDirectory+"Sorting.jav"));
|
execute(new File(rootDirectory+"Sorting.jav"));
|
||||||
}
|
}
|
||||||
|
@Test
|
||||||
|
public void listenerTest() throws IOException, ClassNotFoundException {
|
||||||
|
execute(new File(rootDirectory+"ListenerOverload.jav"));
|
||||||
|
}
|
||||||
|
|
||||||
private static class TestResultSet{
|
private static class TestResultSet{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user