[java-highlighting] IDEA-313989 'switch' expression does not cover all possible input values: false positive

GitOrigin-RevId: 8292fda6965d42e4034c2f6a8c2ee8d185133654
This commit is contained in:
Andrey Cherkasov
2023-02-23 19:25:44 +01:00
committed by intellij-monorepo-bot
parent 5e839de419
commit 5fbc9b814a
2 changed files with 17 additions and 4 deletions

View File

@@ -166,6 +166,11 @@ public class Basic {
case Pair<I>(D d,C c) -> { }
case Pair<I>(D d,D d2) -> { }
}
switch(pairI.x()) {
case C c when true -> {}
case D d -> {}
}
}
}