-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6-rc-1
-
Fix Version/s: 2.4.0-beta-3
-
Component/s: Compiler, parser-antlr2
-
Labels:None
Unlike Java, Groovy doesn't support multiple labels on the same statement - instead, the AST builder discards all but the first (!) label:
class MultipleLabels {
static void main(args) {
label1:
label2:
while (true)
}
}
For a discussion see: http://www.nabble.com/Multiple-labels-on-the-same-statement-td21543898.html