Files
Tagir Valeev 059a080ab3 [java-highlighting] Fix testdata, tooltips
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: ed0cf0daf5dbfb034882d49ad5e9c03f264b451e
2025-01-22 10:33:39 +00:00

22 lines
580 B
Java

import java.util.*;
class Test {
class Parent { }
interface Consumer<T> { }
interface MyConsumer<T extends Parent> extends Consumer<T> { }
public void test(Set<MyConsumer> set) {
@SuppressWarnings("unchecked")
Map<Parent, MyConsumer<Parent>> map = <error descr="Incompatible types. Found: 'java.util.Map<java.lang.Object,Test.MyConsumer>', required: 'java.util.Map<Test.Parent,Test.MyConsumer<Test.Parent>>'">create</error>(set);
}
public <S, T extends Consumer<S>> Map<S, T> create(Set<T> consumers) {
return null;
}
}