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