[FIR] Implement new bound smartcast algorithm
#KT-36055 Fixed
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ class CtxImpl : Ctx {
|
||||
open class Test(open val ctx: Ctx) {
|
||||
fun test() {
|
||||
when (ctx) {
|
||||
is CtxImpl -> ctx.doJob(2)
|
||||
is CtxImpl -> ctx.<!UNRESOLVED_REFERENCE!>doJob<!>(2)
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -9,6 +9,6 @@ var a: A? = null
|
||||
|
||||
fun smartCastInterference(b: B) {
|
||||
if (a != null) {
|
||||
a.foo(b)
|
||||
a.<!INAPPLICABLE_CANDIDATE!>foo<!>(b)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user