mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 1e1b77009dc78de49c7cc5c44d4704937397bb23
11 lines
333 B
Java
11 lines
333 B
Java
import java.util.List;
|
|
|
|
class MyClass<T>
|
|
{
|
|
public MyClass(Class<? extends T> type) {}
|
|
|
|
public static void main(String[] args)
|
|
{
|
|
MyClass<List<String>> myClass = new <error descr="Incompatible types. Found: 'MyClass<java.util.List>', required: 'MyClass<java.util.List<java.lang.String>>'">MyClass<></error>(List.class);
|
|
}
|
|
} |