Additional parser tests for both subject val and expression in 'when'

This commit is contained in:
Dmitry Petrov
2018-06-08 15:59:21 +03:00
parent bf083314dd
commit 53fd883e2a
2 changed files with 217 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@ fun test() {
when (val x1) {}
when (val x2 = ) {}
when (val x3: ) {}
when (val x = 1; 42)
when (fun foo() {}) {}
when (class C {}) {}