diff --git a/test/bytecode/Matrix_lambda.jav b/test/bytecode/Matrix_lambda.jav new file mode 100644 index 00000000..8b318125 --- /dev/null +++ b/test/bytecode/Matrix_lambda.jav @@ -0,0 +1,5 @@ +import de.dhbwstuttgart.typeinference.Menge; + +class Matrix extends Menge> { + op = (Matrix m) -> (f) -> f.apply(this, m); +} \ No newline at end of file diff --git a/test/bytecode/Matrix_lambdaTest.java b/test/bytecode/Matrix_lambdaTest.java new file mode 100644 index 00000000..7cbf4932 --- /dev/null +++ b/test/bytecode/Matrix_lambdaTest.java @@ -0,0 +1,14 @@ +package bytecode; + +import org.junit.Test; + +public class Matrix_lambdaTest { + public final static String rootDirectory = System.getProperty("user.dir")+"/test/bytecode/"; + public final static String testFile = "Matrix_lambda.jav"; + public final static String outputFile = "Matrix_lambda.class"; + + @Test + public void test() { + SingleClassTester.compileToBytecode(rootDirectory+testFile, rootDirectory+outputFile); + } +}