mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
Code completion updates for enhanced switches (IDEA-202340)
- Support inside switch expression - Support rule-based labels - Support break inside expression - Suggest 'switch' keyword in expressions - Insert ':' or '->' depending on the switch type
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
public class ConstConfig {
|
||||
enum X {FOO, BAR, BAZ}
|
||||
|
||||
void test(X x) {
|
||||
switch (x) {
|
||||
case BAR -> {}
|
||||
case BAZ -> {}
|
||||
case FO<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user