[fixes #3153] Improve the handling of ExtensionMethod arguments

This commit is contained in:
Rawi01
2022-03-29 23:14:56 +02:00
parent 70bda54611
commit d4975cf6dd
4 changed files with 24 additions and 4 deletions
@@ -16,6 +16,8 @@ class ExtensionMethodFunctional {
test.consume(s -> System.out.println("1: " + s), s -> System.out.println("2: " + s));
test.consume(System.out::println, System.out::println);
test.consume(test.length() > 0 ? System.out::println : null);
Stream.of("a", "b", "c").map(String::toUpperCase).toList1();
List<Integer> i2 = Stream.of("a", "b", "c").map(String::toUpperCase).toList2();
}