mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
[java inference] treat intersection type in one more place (IDEA-274350)
GitOrigin-RevId: d31b30aab900748010f28b02c483c56982d26040
This commit is contained in:
committed by
intellij-monorepo-bot
parent
41f79ea01a
commit
07fe5de1ce
@@ -1,4 +1,5 @@
|
||||
import java.io.Serializable;
|
||||
import java.util.function.Function;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -33,3 +34,17 @@ class Test1 {
|
||||
Object c0 = (A & B) ()->{};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class Test2 {
|
||||
{
|
||||
foo(i -> i);
|
||||
foo1(i -> i);
|
||||
foo2(i -> i);
|
||||
}
|
||||
|
||||
private static <T extends Function<?, ?> & A<?>> void foo(T t) { }
|
||||
private static <T extends Function<?, ?> & Serializable> void foo1(T t) { }
|
||||
private static <T extends Function<Integer, Integer> & Serializable> void foo2(T t) { }
|
||||
interface A<K> {}
|
||||
}
|
||||
Reference in New Issue
Block a user