Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
callableReference
/
boundPropertyReferenceInInline.kt
blob: bda3ed5b852018f1b81d2072c167ffbc4eef9457 [
file
] [
log
] [
blame
]
fun box
():
String
{
return
if
(
call
(
A
(
10
)::
calc
)
==
5
)
"OK"
else
"fail"
}
class
A
(
val p
:
Int
)
{
val calc
:
Int
get
()
=
p
/
2
}
inline
fun call
(
s
:
()
->
Int
):
Int
{
return
s
()
}
// 1 NEW A
// 1 NEW