Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
417088e15084daef5c72bc17ea66d3cf3c026c33
/
.
/
compiler
/
testData
/
codegen
/
script
/
referenceToDelegatedProperty.kts
blob: f175b371623168fc9fbeb4abb8c10097f1d960d7 [
file
]
import
kotlin
.
reflect
.
KProperty
class
Delegate
{
operator
fun getValue
(
t
:
Any
?,
p
:
KProperty
<*>):
Int
=
3
}
val prop
:
Int
by
Delegate
()
val x
=
::
prop
val y
=
x
.
get
()
// expected: y: 3