[FIR] Fix collecting member candidates on receiver with smartcast
^KT-51460 Fixed ^KT-51827
This commit is contained in:
committed by
teamcity
parent
51bd0fd2db
commit
6e2402620f
@@ -0,0 +1,18 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-51460
|
||||
|
||||
abstract class A {
|
||||
abstract protected val a: A?
|
||||
|
||||
class B(override val a: A?) : A() {
|
||||
fun f(other: A) {
|
||||
val x = if (other is C) {
|
||||
other.a
|
||||
} else {
|
||||
null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class C(override val a: A?): A()
|
||||
}
|
||||
Reference in New Issue
Block a user