Files
kotlin-fork/compiler/testData/cfg-variables/lexicalScopes/localFunctionScopeWithoutBody.values
T

21 lines
614 B
Plaintext

== foo ==
fun foo() {
"before"
val b = 1
fun local(x: Int) = x + b
"after"
}
---------------------
"before" <v0>: * NEW()
1 <v1>: Int NEW()
"after" <v2>: * NEW()
{ "before" val b = 1 fun local(x: Int) = x + b "after" } <v2>: * COPY
=====================
== local ==
fun local(x: Int) = x + b
---------------------
x <v1>: Int NEW()
b <v2>: Int NEW()
x + b <v3>: Int NEW(<v1>, <v2>)
=====================