Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/AmbiguousMethodsFromSameClassAccess.java
Tagir Valeev 61f7252105 [java-highlighting] same erasure problems migrated
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 052d3bf8a26c376c7dfc5b1e370e583cf6236138
2025-02-12 20:34:11 +00:00

14 lines
324 B
Java

package pck;
class A {
public void bar(I a, Class<Long> any) {
System.out.println(a.with(any));
}
interface I {
<error descr="'with(Class<T>)' clashes with 'with(Class<Long>)'; both methods have same erasure"><T> T with(Class<T> aClass);</error>
long with(Class<Long> aClass);
}
}