14 lines
267 B
Kotlin
Vendored
14 lines
267 B
Kotlin
Vendored
fun test() {
|
|
when (val) {}
|
|
when (val x1) {}
|
|
when (val x2 = ) {}
|
|
when (val x3: ) {}
|
|
when (val x = 1; 42)
|
|
|
|
when (fun foo() {}) {}
|
|
when (class C {}) {}
|
|
when (interface I {}) {}
|
|
when (object Obj {}) {}
|
|
when (typealias TA = T) {}
|
|
}
|