JavaPatternMatching/resources/insertGenericsJav/TestTPHsAndGenerics2.jav

13 lines
191 B
Java

class TPHsAndGenerics2 {
id = x -> x;
id2 (x) {
return id.apply(x);
}
m(a, b){
var c = m2(a,b);
return a;
}
m2(a, b){
return b;
}
}