mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 04:09:09 +07:00
inference: skip lambda content and all its dependants when lambda type parameter type is calculated
This commit is contained in:
@@ -36,3 +36,12 @@ final class Collectors {
|
||||
downstream.characteristics().toArray(new Collector.Characteristics[downstream.characteristics().size()]));
|
||||
}
|
||||
}
|
||||
|
||||
class SimplifiedTest {
|
||||
|
||||
public static void a(Stream<Integer> classifier) {
|
||||
flatMapping(classifier.map(k -> new AbstractMap.SimpleEntry<Integer, String>(k,k.toString())), Map.Entry::getKey);
|
||||
}
|
||||
|
||||
public static <U, R> void flatMapping(Stream<U> stream, Function<U, R> downstream) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user