FIR: Fix rendered fir and DFA graph test data after safe-calls refactoring
^KT-38444 In Progress
This commit is contained in:
Vendored
+2
-2
@@ -92,8 +92,8 @@ FILE: boundSmartcasts.kt
|
||||
R|<local>/d1|.R|/D.any|.R|/baz|()
|
||||
}
|
||||
public final fun test_7(d1: R|D|, d2: R|D|): R|kotlin/Unit| {
|
||||
lval a: R|kotlin/Any?| = R|<local>/d1|?.R|/D.any|
|
||||
lval b: R|kotlin/Any?| = R|<local>/d2|?.R|/D.any|
|
||||
lval a: R|kotlin/Any?| = R|<local>/d1|?.{ $subj$.R|/D.any| }
|
||||
lval b: R|kotlin/Any?| = R|<local>/d2|?.{ $subj$.R|/D.any| }
|
||||
(R|<local>/a| as R|A|)
|
||||
R|<local>/a|.R|/A.foo|()
|
||||
(R|<local>/b| as R|B|)
|
||||
|
||||
Vendored
+2
-2
@@ -76,7 +76,7 @@ digraph functionCallBound_kt {
|
||||
25 [label="Access variable R|<local>/base|"];
|
||||
26 [label="Type operator: (R|<local>/base| as? R|Sub|)"];
|
||||
27 [label="Enter safe call"];
|
||||
29 [label="Function call: (R|<local>/base| as? R|Sub|)?.R|/isOk|()"];
|
||||
29 [label="Function call: $subj$.R|/isOk|()"];
|
||||
28 [label="Exit safe call"];
|
||||
30 [label="Const: Boolean(true)"];
|
||||
31 [label="Operator =="];
|
||||
@@ -107,7 +107,7 @@ digraph functionCallBound_kt {
|
||||
23 [label="Exit when"];
|
||||
}
|
||||
46 [label="Jump: ^check when () {
|
||||
==((R|<local>/base| as? R|Sub|)?.R|/isOk|(), Boolean(true)) -> {
|
||||
==((R|<local>/base| as? R|Sub|)?.{ $subj$.R|/isOk|() }, Boolean(true)) -> {
|
||||
R|<local>/base|.R|/Sub.data|
|
||||
}
|
||||
else -> {
|
||||
|
||||
Vendored
+1
-1
@@ -19,7 +19,7 @@ FILE: functionCallBound.kt
|
||||
}
|
||||
public final fun check(base: R|Base|): R|Base| {
|
||||
^check when () {
|
||||
==((R|<local>/base| as? R|Sub|)?.R|/isOk|(), Boolean(true)) -> {
|
||||
==((R|<local>/base| as? R|Sub|)?.{ $subj$.R|/isOk|() }, Boolean(true)) -> {
|
||||
R|<local>/base|.R|/Sub.data|
|
||||
}
|
||||
else -> {
|
||||
|
||||
Reference in New Issue
Block a user