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