JavaCompilerCore/testBytecode/manually/LamWithField.java

15 lines
282 B
Java
Raw Normal View History

2017-11-29 13:45:15 +00:00
import java.util.function.Function;
class LamWithField {
Integer mul(Integer x, Integer y) {
return x;
}
Integer res = new Integer(5);
Function<Integer,Integer> m () {
Function<Integer,Integer> lam1 = (Integer x) -> {
return res*x;
};
return lam1;
}
}