Files
kotlin-fork/compiler/testData/cfg/expressions/propertySafeCall.instructions
T
Mikhail Glukhikh a08b8f43b2 Control flow graph for safe calls corrected #KT-10913 Fixed
Also #KT-10186 Fixed
Also #KT-5198 Fixed
2016-02-10 12:29:45 +03:00

24 lines
728 B
Plaintext
Vendored

== test ==
fun test(s: IntProgression?) {
s?.first
}
---------------------
L0:
1 <START>
v(s: IntProgression?)
magic[FAKE_INITIALIZER](s: IntProgression?) -> <v0>
w(s|<v0>)
2 mark({ s?.first })
mark(s?.first)
jf(L2) NEXT:[<END>, r(s) -> <v1>]
r(s) -> <v1>
r(first|<v1>) -> <v2>
L1:
L2 [result of call]:
1 <END> NEXT:[<SINK>] PREV:[jf(L2), r(first|<v1>) -> <v2>]
error:
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
=====================