Ashish created GROOVY-9113:
------------------------------

             Summary: Unreachable code was not flagged by groovy compiler
                 Key: GROOVY-9113
                 URL: https://issues.apache.org/jira/browse/GROOVY-9113
             Project: Groovy
          Issue Type: Bug
          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


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
(v7.6.3#76005)

Reply via email to