From 02b17b1a8f9506b89fc00e6785de94d843b7efa8 Mon Sep 17 00:00:00 2001 From: Pluemicke Martin Date: Wed, 23 Sep 2015 22:17:41 +0200 Subject: [PATCH] Test2 in Test.java hinzugefuegt --- test/bytecode/Test.java | 11 +++++++++++ .../MartinTestCases/Matrix_lambda.jav | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/test/bytecode/Test.java b/test/bytecode/Test.java index b11f155d..22e417af 100644 --- a/test/bytecode/Test.java +++ b/test/bytecode/Test.java @@ -14,3 +14,14 @@ public static void main(String[] args){ System.out.println(t); } } + +class Test2{ + Fun1 m() { + Fun1 f = new Identity().op; + return f; + } +public static void main(String[] args){ + Test2 t = new Test2<>(); + System.out.println(t.m().apply(1)); +} +} diff --git a/test/plugindevelopment/MartinTestCases/Matrix_lambda.jav b/test/plugindevelopment/MartinTestCases/Matrix_lambda.jav index 8b318125..a505aea9 100644 --- a/test/plugindevelopment/MartinTestCases/Matrix_lambda.jav +++ b/test/plugindevelopment/MartinTestCases/Matrix_lambda.jav @@ -1,5 +1,5 @@ -import de.dhbwstuttgart.typeinference.Menge; +import java.util.Vector; -class Matrix extends Menge> { - op = (Matrix m) -> (f) -> f.apply(this, m); +class Matrix { + op = (m) -> (f) -> f.apply(m); } \ No newline at end of file