mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-15 23:06:53 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 1e1b77009dc78de49c7cc5c44d4704937397bb23
14 lines
394 B
Java
14 lines
394 B
Java
import java.util.function.Function;
|
|
import java.util.function.IntFunction;
|
|
|
|
class A {
|
|
static void foo(Function<String, String> f) {}
|
|
}
|
|
|
|
class B extends A {
|
|
static void foo(IntFunction<String> f) {}
|
|
|
|
public static void main(String[] args) {
|
|
foo<error descr="Ambiguous method call: both 'B.foo(IntFunction<String>)' and 'A.foo(Function<String, String>)' match">(a -> "1")</error>;
|
|
}
|
|
} |