Files
JavaCompilerCore/resources/bytecode/javFiles/Bug363.jav
i21023 8b342c5604
Some checks failed
Build and Test with Maven / Build-and-test-with-Maven (push) Has been cancelled
the last commit message was a lie, nothing was fixed. The lambdas does not even respect the arguments it is given?
2025-06-18 16:46:27 +02:00

23 lines
367 B
Java

import java.lang.String;
public class Bug363 {
uncurry (f){
return x -> f.apply(x);
}
uncurry (f){
return (x, y) -> f.apply(x).apply(y);
}
uncurry (f){
return (x, y, z) -> f.apply(x).apply(y).apply(z);
}
public test(){
var f = x -> y -> z -> x + y + z;
var g = uncurry(f);
return g.apply("A", "B", "C"); // Outputs: 6
}
}