Files
T
2016-01-13 15:46:54 +03:00

7 lines
118 B
Kotlin

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