Test2 in Test.java hinzugefuegt

This commit is contained in:
Pluemicke Martin 2015-09-23 22:17:41 +02:00
parent 0906fa2e9e
commit 02b17b1a8f
2 changed files with 14 additions and 3 deletions

View File

@ -14,3 +14,14 @@ public static void main(String[] args){
System.out.println(t);
}
}
class Test2<X>{
Fun1<? extends X,? super X> m() {
Fun1<? extends X,? super X> f = new Identity<X,X>().op;
return f;
}
public static void main(String[] args){
Test2<Integer> t = new Test2<>();
System.out.println(t.m().apply(1));
}
}

View File

@ -1,5 +1,5 @@
import de.dhbwstuttgart.typeinference.Menge;
import java.util.Vector;
class Matrix extends Menge<Menge<Integer>> {
op = (Matrix m) -> (f) -> f.apply(this, m);
class Matrix {
op = (m) -> (f) -> f.apply(m);
}