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:
Nikolay Krasko
2011-11-29 12:48:08 +04:00
parent e787d94b96
commit 84cb0a179a
5 changed files with 166 additions and 14 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ bq. See [Pattern matching]
*/
when
: "when" "(" (modifiers "val" SimpleName "=")? expression ")" "{"
: "when" ("(" (modifiers "val" SimpleName "=")? expression ")")? "{"
whenEntry*
"}"
;