Eric Milles created GROOVY-11617:
------------------------------------
Summary: switch without break or other statement for the last case
Key: GROOVY-11617
URL: https://issues.apache.org/jira/browse/GROOVY-11617
Project: Groovy
Issue Type: Bug
Components: parser-antlr4
Reporter: Eric Milles
A switch statement without a break or other statement for the last case fails
to parse:
{code:groovy}
switch (xxx) {
case yyy:
}
{code}
I think the same happens for "default:" instead of "case yyy:".
Adding ";" or "break" or any other statement after the case parses fine.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)