mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
[java-inspections] IDEA-328239 Casting with conjunction
- fix formatting GitOrigin-RevId: 74955a0e5ddc5d5894455fcbfb3bec813d081b84
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0df2261a21
commit
bed8faeb52
@@ -7,13 +7,13 @@ class Test {
|
||||
}
|
||||
public static void main(String... args) {
|
||||
var shouldCompile = (Consumer<Integer> & IntConsumerAdapter1)
|
||||
i -> System.out.println("Cons3uming dd" + i);
|
||||
i -> System.out.println("Consuming" + i);
|
||||
System.out.println(shouldCompile.getClass());
|
||||
shouldCompile.accept(42);
|
||||
shouldCompile.accept(Integer.valueOf(52));
|
||||
|
||||
var shouldNotCompile = (Consumer<Integer> & IntConsumerAdapter2)
|
||||
<error descr="No target method found">i -> System.out.println("Consumins2gs " + i)</error>;
|
||||
<error descr="No target method found">i -> System.out.println("Consuming " + i)</error>;
|
||||
shouldNotCompile.accept(42);
|
||||
shouldNotCompile.accept(Integer.valueOf(52));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user