Fix parsing variable declaration in when subject

- parse destructuring declarations
- parse annotations on variable declaration in when subject
This commit is contained in:
Dmitry Petrov
2017-10-23 14:13:06 +03:00
parent 091b935c2d
commit 8aec99f4b5
7 changed files with 387 additions and 5 deletions
+12
View File
@@ -0,0 +1,12 @@
fun test() {
when (val) {}
when (val x1) {}
when (val x2 = ) {}
when (val x3: ) {}
when (fun foo() {}) {}
when (class C {}) {}
when (interface I {}) {}
when (object Obj {}) {}
when (typealias TA = T) {}
}