Files
2017-08-10 21:19:42 +03:00

7 lines
118 B
Kotlin
Vendored

import Base.*
fun use(x: Base): String =
when (x) {
is A -> "A"
is B -> "B"
}