11 lines
144 B
Kotlin
Vendored
11 lines
144 B
Kotlin
Vendored
sealed class Foo {
|
|
object A : Foo()
|
|
class B(val i: Int) : Foo()
|
|
}
|
|
|
|
fun test(e: Foo) {
|
|
<caret>when (e) {
|
|
Foo.A -> {}
|
|
}
|
|
}
|