Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
script
/
localDelegatedProperty.kts
blob: b1b6bffbbc39d7b79255897779d5cf6a33f71c4d [
file
] [
log
] [
blame
]
import
kotlin
.
reflect
.
KProperty
class
Delegate
{
operator
fun getValue
(
t
:
Any
?,
p
:
KProperty
<*>):
Int
=
3
}
fun foo
():
Int
{
val prop
:
Int
by
Delegate
()
return
prop
}
val x
=
foo
()
// expected: x: 3