[
https://issues.apache.org/jira/browse/GROOVY-11617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18133844#comment-18133844
]
ASF GitHub Bot commented on GROOVY-11617:
-----------------------------------------
testlens-app[bot] commented on PR #3072:
URL: https://github.com/apache/groovy/pull/3072#issuecomment-6481048507
## ✅ All tests passed ✅
🏷️ Commit: cd755f5b8debb89950eaa9a9ce7d1a425799625d
▶️ Tests: 123975 executed
⚪️ Checks: 32/32 completed
---
_Learn more about TestLens at
[testlens.app/docs](https://testlens.app/docs/features/pr-comment/)._
> 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
> Assignee: Daniel Sun
> Priority: Major
>
> A switch statement without a break or other statement for the last case fails
> to parse:
> {code:groovy}
> switch (xxx) {
> case yyy:
> }
> {code}
> The same happens for "default:" instead of "case yyy:". (It also happens for
> switch expressions without the expression "case zzz ->" but that is probably
> acceptable.)
> Adding ";" or "break" or any other statement after the case parses fine.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)