mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
don't try to infer from top if overloaded flag is on (IDEA-156937)
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
import java.util.Collection;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
class Foo<T> {
|
||||
|
||||
|
||||
{
|
||||
bar(() -> Result.create(new Function<String, String>() {
|
||||
@Override
|
||||
public String apply(String s) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}, new Object())
|
||||
);
|
||||
}
|
||||
|
||||
private static <T> void bar(Supplier<T> provider ){}
|
||||
|
||||
static class Result<K> {
|
||||
public static <T> Result<T> create( T value, Collection<?> dependencies) {
|
||||
return new Result<T>();
|
||||
}
|
||||
|
||||
public static <T> Result<T> create( T value, Object... dependencies) {
|
||||
return new Result<T>();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user