[ 
https://issues.apache.org/jira/browse/GROOVY-9113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jochen Theodorou updated GROOVY-9113:
-------------------------------------
    Issue Type: Improvement  (was: Bug)

> 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: groovy-jdk
>    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)

Reply via email to