12 lines
204 B
Kotlin
Vendored
12 lines
204 B
Kotlin
Vendored
// "Remove useless is check" "true"
|
|
interface Base
|
|
interface Derived: Base
|
|
|
|
fun foo(bar: Base):Int {
|
|
return when (bar) {
|
|
is Derived -> 0
|
|
<caret>is Base -> 42
|
|
else -> 1
|
|
}
|
|
}
|