Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
eeaff786f0d0a86b7b827da0028bbafe287d3c04
/
.
/
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"
}