Files
kotlin-fork/compiler/testData/cfg-variables/lexicalScopes/localFunctionScopeWithoutBody.values
T
2014-06-19 22:04:44 +04:00

21 lines
580 B
Plaintext

== foo ==
fun foo() {
"before"
val b = 1
fun local(x: Int) = x + b
"after"
}
---------------------
"before" <v0> NEW()
1 <v1> 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> NEW()
b <v2> NEW()
x + b <v3> NEW(<v1>, <v2>)
=====================