FIR DFA: route data flow through anonymous objects
^KT-44515 Fixed
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ fun foo(): Int {
|
||||
k.run()
|
||||
val d: Int = c
|
||||
// a is captured so smart cast is not possible
|
||||
return d + a
|
||||
return d <!NONE_APPLICABLE!>+<!> a
|
||||
}
|
||||
else return -1
|
||||
}
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ fun foo(): Int {
|
||||
k.run()
|
||||
val d: Int = c
|
||||
// a is not null because of k constructor, but we do not know it
|
||||
return a <!UNSAFE_OPERATOR_CALL!>+<!> d
|
||||
return a + d
|
||||
}
|
||||
else return -1
|
||||
}
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ fun foo(): Int {
|
||||
}
|
||||
k.run()
|
||||
val d: Int = c
|
||||
return a <!UNSAFE_OPERATOR_CALL!>+<!> d
|
||||
return a + d
|
||||
}
|
||||
else return -1
|
||||
}
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ fun foo(): Int {
|
||||
}
|
||||
k.run()
|
||||
val d: Int = c
|
||||
return a <!UNSAFE_OPERATOR_CALL!>+<!> d
|
||||
return a + d
|
||||
}
|
||||
else return -1
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,5 +7,5 @@ abstract class A(val s: String) {
|
||||
fun foo(o: String?): Int {
|
||||
val a = object : A(o!!){}
|
||||
a.bar()
|
||||
return o<!UNSAFE_CALL!>.<!>length
|
||||
return o.length
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user