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