JET-174 Make continue work the same way in all contexts inside when
Guards are removed. Continue is not supported yet.
This commit is contained in:
@@ -12,12 +12,8 @@ when
|
||||
|
||||
whenEntry
|
||||
// TODO : consider empty after =>
|
||||
: whenConditionIf{","} (when | "=>" expression SEMI)
|
||||
: "else" ("continue" | "=>" expression SEMI)
|
||||
;
|
||||
|
||||
whenConditionIf
|
||||
: whenCondition ("if" "(" expression ")")?
|
||||
: whenCondition{","} "=>" expression SEMI
|
||||
: "else" "=>" expression SEMI
|
||||
;
|
||||
|
||||
whenCondition
|
||||
|
||||
Reference in New Issue
Block a user