modified: ../../test/bytecode/LambdaTest.java
modified: ../../test/bytecode/javFiles/Lambda2.jav
This commit is contained in:
parent
521a1cbf3b
commit
0b7aea21d9
@ -13,7 +13,7 @@ public class LambdaTest {
|
||||
|
||||
@Test
|
||||
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);
|
||||
compiler = new JavaTXCompiler(fileToTest);
|
||||
compiler.generateBytecode();
|
||||
|
@ -1,3 +1,4 @@
|
||||
import java.lang.String;
|
||||
|
||||
public class Lambda2
|
||||
{
|
||||
@ -23,10 +24,12 @@ public static <I,O> List<O> map(List<I> input, Function<I,O> func) {
|
||||
}
|
||||
|
||||
class List<A>{
|
||||
A get();
|
||||
/* A get();
|
||||
void add(A);
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
class Function<A,B>{
|
||||
B apply(A a);
|
||||
}
|
||||
}
|
||||
*/
|
Loading…
Reference in New Issue
Block a user