83824d0ba6
#KT-36847 Fixed
20 lines
294 B
Kotlin
Vendored
20 lines
294 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
interface A
|
|
class B : A
|
|
|
|
val String.ext: A
|
|
get() = TODO()
|
|
|
|
class Cls {
|
|
fun take(arg: B) {}
|
|
|
|
fun test(s: String) {
|
|
if (s.ext is B)
|
|
take(<!OI;SMARTCAST_IMPOSSIBLE!>s.ext<!>)
|
|
}
|
|
}
|
|
|
|
fun take(arg: Any) {}
|