mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 02:24:00 +07:00
GitOrigin-RevId: b097e12c61cac86e789945a89316a7fef391c770
9 lines
219 B
Java
9 lines
219 B
Java
// "Cast lambda return to 'long'" "true-preview"
|
|
import java.util.function.*;
|
|
|
|
class Demo {
|
|
void test(Function<String, String> input) {
|
|
Function<String, Long> result = input.andThen(s -> <caret>s.length());
|
|
}
|
|
}
|