c1904004c4
^KT-54432 Fixed
17 lines
262 B
Kotlin
Vendored
17 lines
262 B
Kotlin
Vendored
open class Base {
|
|
fun foo(): String {
|
|
return when (this) {
|
|
is Derived -> baz()
|
|
else -> "fail 1"
|
|
}
|
|
}
|
|
|
|
private fun baz(): String = "OK"
|
|
}
|
|
|
|
class Derived : Base()
|
|
|
|
fun box(): String {
|
|
return Derived().foo()
|
|
}
|