You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Ashish (JIRA)" <ji...@apache.org> on 2019/05/08 00:24:00 UTC

[jira] [Created] (GROOVY-9113) Unreachable code was not flagged by groovy compiler

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)