don't use data flow info while checking for receiver
receiver with smart cast is checked separately
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
public class A() {
|
||||
public val foo: Int? = 1
|
||||
}
|
||||
|
||||
fun Int.bar(i: Int) = i
|
||||
|
||||
fun test() {
|
||||
val p = A()
|
||||
if (p.foo is Int) <!AUTOCAST_IMPOSSIBLE!>p.foo<!> bar 11
|
||||
}
|
||||
Reference in New Issue
Block a user