forked from JavaTX/JavaCompilerCore
Test2 in Test.java hinzugefuegt
This commit is contained in:
parent
0906fa2e9e
commit
02b17b1a8f
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user