6735cc8937
#KT-36055 Fixed
15 lines
286 B
Kotlin
Vendored
15 lines
286 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
interface Ctx
|
|
class CtxImpl : Ctx {
|
|
fun doJob(a: Int) {}
|
|
fun doJob(s: String) {}
|
|
}
|
|
|
|
open class Test(open val ctx: Ctx) {
|
|
fun test() {
|
|
when (ctx) {
|
|
is CtxImpl -> ctx.<!UNRESOLVED_REFERENCE!>doJob<!>(2)
|
|
}
|
|
}
|
|
} |