mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 12:17:12 +07:00
conditional expression: use target type for overload cases when assignable
GitOrigin-RevId: 2be5da156f1726f8536e6fc6447ae847629b0001
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c8cf98f173
commit
0374b5f49c
@@ -0,0 +1,18 @@
|
||||
interface I {
|
||||
void f();
|
||||
}
|
||||
|
||||
class B implements I {
|
||||
@Override
|
||||
public void f() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class MyTest {
|
||||
void m(I i) {}
|
||||
|
||||
void n(int ik) {
|
||||
m(ik > 0 ? () -> {} : new B());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user