Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
260e8dfd39d86c4c5db834113ee010d647f3995e
/
.
/
compiler
/
testData
/
codegen
/
boxJvm
/
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"
}