[prev in list] [next in list] [prev in thread] [next in thread]
List: groovy-user
Subject: Re: [groovy-user] New Groovy syntax: switch/case
From: Jochen Theodorou <blackdrag () gmx ! org>
Date: 2005-06-27 22:31:03
Message-ID: 42C07E27.7020100 () gmx ! org
[Download RAW message or body]
Christof Vollrath schrieb:
> I like to stacked cases for multiple matches in a switch statement like:
>
> switch(i) {
> case 1:
> case 2:
> case 3:
> doSomethingFor123()
> break
> case 4:
> doSomethingFor4()
> break
> }
>
> But with the new Groovy syntax, I get the error: Unkown type: "case"
> It used to work with the classic parser.
> Should I create a Jira issue?
> tof
yes
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic