Files
kotlin-fork/compiler/testData/psi/WhenWithSubjectVariable_ERR.kt
T
Dmitry Petrov 8aec99f4b5 Fix parsing variable declaration in when subject
- parse destructuring declarations
- parse annotations on variable declaration in when subject
2018-06-20 14:06:34 +03:00

13 lines
242 B
Kotlin
Vendored

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) {}
}