Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6f1b95d296c5592d3a3e71cc638994fa2ba4e4f7
/
.
/
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"
}