Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
codegen
/
box
/
callableReference
/
kt16752.kt
blob: b1b491aeed3647f39acdd76dd58d7a4bd2474fa6 [
file
]
// TARGET_BACKEND: JVM
// IGNORE_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"
}