[
https://issues.apache.org/jira/browse/GROOVY-9113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jochen Theodorou updated GROOVY-9113:
-------------------------------------
Component/s: Compiler
Static compilation
Static Type Checker
(was: groovy-jdk)
> Unreachable code was not flagged by groovy compiler
> ---------------------------------------------------
>
> Key: GROOVY-9113
> URL: https://issues.apache.org/jira/browse/GROOVY-9113
> Project: Groovy
> Issue Type: Improvement
> Components: Compiler, Static compilation, Static Type Checker
> Affects Versions: 2.4.6
> Environment: Groovy Version: 2.4.6 JVM: 1.8.0_91 Vendor: Oracle
> Corporation OS: Windows 10
> Reporter: Ashish
> Priority: Major
>
> The {{break}} statement after {{return'1'}} was not flagged as unreachable by
> groovy
> {code:java}
> switch(x) {
> case ['Front', 'Steer']:
> return '1'
> break
> case 'Drive':
> return '2'
> }{code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)