Additional parser tests for both subject val and expression in 'when'
This commit is contained in:
@@ -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 {}) {}
|
||||
|
||||
Reference in New Issue
Block a user