mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
[java-highlighting] IDEA-324654 IDEA-324675 Take into account the hierarchy for coverage
GitOrigin-RevId: 37d211b59419aa50a106c47ac897e704bed32ca7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
89a74caded
commit
11a07b9e2c
@@ -0,0 +1,18 @@
|
||||
class Main {
|
||||
sealed interface T permits T1, T2 {
|
||||
}
|
||||
final class T1 implements T {
|
||||
}
|
||||
|
||||
interface B{}
|
||||
|
||||
final class T2 implements T, B {
|
||||
}
|
||||
|
||||
public static void test2(T t) {
|
||||
switch (t) {
|
||||
case T1 t1-> System.out.println(1);
|
||||
case B t2-> System.out.println(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user