Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2b455fc1ba7dcb99fa03fdfc31c7672d6ccfc9fd
/
.
/
compiler
/
testData
/
codegen
/
box
/
callableReference
/
kt16752.kt
blob: bbaa44886ce252f7bbae6a36aa6afa83ce7c1de2 [
file
]
// TARGET_BACKEND: JVM
class
Incrementer
:
(
Int
)
->
Int
by
Int
::
inc
fun box
():
String
{
val incr
=
Incrementer
()
val test
=
incr
(
5
)
if
(
test
!=
6
)
throw
Exception
(
"incr(5): $test"
)
return
"OK"
}