Files
kotlin-fork/plugins/jvm-abi-gen/testData/compile/inlineAnonymousObject/lib/lib.kt
T
Kevin Bierhoff bc207ed8db fix for KT-29471
#KT-29471 Fixed
2019-09-18 14:42:09 +03:00

12 lines
227 B
Kotlin
Vendored

package lib
interface Interface {
fun getInt(): Int
}
inline fun getCounter(crossinline init: () -> Int): Interface =
object : Interface {
var value = init()
override fun getInt(): Int = value++
}