DataFlowInfo taken into account when resolving component functions
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class A {
|
||||
fun component1() : Int = 1
|
||||
fun component2() : Int = 2
|
||||
}
|
||||
|
||||
fun a(aa : A?, b : Any) {
|
||||
if (aa != null) {
|
||||
val (a1, b1) = aa;
|
||||
}
|
||||
|
||||
if (b is A) {
|
||||
val (a1, b1) = b;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user