Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
161333d3e7d13dd98386fe346a71a07eadfe4756
/
.
/
compiler
/
testData
/
codegen
/
box
/
callableReference
/
twoRefsOneScope.kt
blob: f6049a121f0b7fd5977b23bab0736ff5a3795f83 [
file
]
fun invoke
(
f
:
()
->
String
):
String
=
f
()
val x
:
String
get
()
=
"2"
fun box
():
String
{
fun localFun
()
=
"1"
if
(
invoke
(::
localFun
)
+
invoke
(::
localFun
)
!=
"11"
)
return
"Fail 1"
if
(
invoke
(::
x
)
+
invoke
(::
x
)
!=
"22"
)
return
"Fail 2"
return
"OK"
}