mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 18:50:54 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: bec076c5bff67e22d06e64e573d3219a4c89dd4d
10 lines
332 B
Java
10 lines
332 B
Java
class IncompleteSwitch {
|
|
public void testExpression(char o) {
|
|
int i = switch (o) {
|
|
case '2':
|
|
yield 2;
|
|
case <error descr="Primitive types in patterns, instanceof and switch are not supported at language level '21'">char a</error> when a == '1'<EOLError descr="':' or '->' expected"></EOLError>
|
|
};
|
|
}
|
|
}
|