Files
Tagir Valeev 7e1064ea3c [java-intentions] More preview tests; minor fixes
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
2022-07-29 17:55:13 +00:00

18 lines
518 B
Java

// "Replace method call on lambda with lambda body" "true-preview"
import java.util.function.Function;
public class Test {
public static void main(String[] args) {
String s = ((Function<String, String>) ((x) -> {
/* comment1 */
System.out.println(/* output x */x);
// comment2
System.out.println("hello");
return /*in return */ "foo" + //inline
"bar";
})).<caret>apply("a"+/* who-hoo */ "x");
}
}