Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6f1b95d296c5592d3a3e71cc638994fa2ba4e4f7
/
.
/
compiler
/
testData
/
codegen
/
box
/
delegatedProperty
/
topLevelVal.kt
blob: e28913fabbe204a1f7af4c6b31dd8e53b9ee0d34 [
file
]
import
kotlin
.
reflect
.
KProperty
class
Delegate
{
operator
fun getValue
(
t
:
Any
?,
p
:
KProperty
<*>):
Int
=
1
}
val prop
:
Int
by
Delegate
()
fun box
():
String
{
return
if
(
prop
==
1
)
"OK"
else
"fail"
}