Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
70b97c5abe682fb7598fc5070d94c39256a0baa4
/
.
/
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