1 2 3 4 5 6 7 8
import Base.* fun use(x: Base): String = when (x) { is A -> "A" is B -> "B" is C -> "C" }