KT-622 Add when without condition. (Only changes for parsing were added. A special task for semantic level is KT-657)
This commit is contained in:
@@ -5,7 +5,7 @@ bq. See [Pattern matching]
|
||||
*/
|
||||
|
||||
when
|
||||
: "when" "(" (modifiers "val" SimpleName "=")? expression ")" "{"
|
||||
: "when" ("(" (modifiers "val" SimpleName "=")? expression ")")? "{"
|
||||
whenEntry*
|
||||
"}"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user