modified: ../../test/bytecode/LambdaTest.java

modified:   ../../test/bytecode/javFiles/Lambda2.jav
This commit is contained in:
Martin Plümicke 2018-05-08 18:52:43 +02:00
parent 521a1cbf3b
commit 0b7aea21d9
2 changed files with 7 additions and 4 deletions

View File

@ -13,7 +13,7 @@ public class LambdaTest {
@Test @Test
public void generateBC() throws Exception { public void generateBC() throws Exception {
path = System.getProperty("user.dir")+"/test/bytecode/javFiles/Lambda.jav"; path = System.getProperty("user.dir")+"/test/bytecode/javFiles/Lambda2.jav";
fileToTest = new File(path); fileToTest = new File(path);
compiler = new JavaTXCompiler(fileToTest); compiler = new JavaTXCompiler(fileToTest);
compiler.generateBytecode(); compiler.generateBytecode();

View File

@ -1,3 +1,4 @@
import java.lang.String;
public class Lambda2 public class Lambda2
{ {
@ -23,10 +24,12 @@ public static <I,O> List<O> map(List<I> input, Function<I,O> func) {
} }
class List<A>{ class List<A>{
A get(); /* A get();
void add(A); void add(A);
*/
} }
/*
class Function<A,B>{ class Function<A,B>{
B apply(A a); B apply(A a);
} }
*/