mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
don't calculate substitution for overload resolution applicability checks
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Foo {
|
||||
|
||||
public void foo(Set<String> types) { }
|
||||
|
||||
public void foo(Collection<Integer> types) { }
|
||||
|
||||
void m(final Stream<String> stringStream) {
|
||||
foo(stringStream.collect(Collectors.toSet()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user