JavaPatternMatching/resources/insertGenerics/javFiles/TestTPHsAndGenerics2.jav

14 lines
192 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;
}
}