mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
overload resolution: don't reject first inapplicable vararg method
GitOrigin-RevId: 3e8246e5cbdab35327da0587aa62111b04f7dbed
This commit is contained in:
committed by
intellij-monorepo-bot
parent
97586f00b7
commit
e9fb32668e
@@ -1,4 +1,23 @@
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Order {
|
||||
interface I { }
|
||||
interface I2 { }
|
||||
|
||||
class Holder {
|
||||
public void registerProblem(I i1,
|
||||
String s,
|
||||
I2 ... i2s) { }
|
||||
|
||||
public void registerProblem(Foo problemDescriptor) { }
|
||||
}
|
||||
class Foo {
|
||||
void f(Stream<Foo> stream, Holder holder) {
|
||||
stream.forEach(holder::registerProblem);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
interface I {
|
||||
void foo(String s, Object... params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user