[fixes #3153] Improve the handling of ExtensionMethod arguments

This commit is contained in:
Rawi01 committed 2022-03-29 23:17:03 +02:00
1 parent 70bda54611
commit d4975cf6dd
4 files changed
+24 -4

No files matched your search

@@ -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();
}