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