bc207ed8db
#KT-29471 Fixed
12 lines
227 B
Kotlin
Vendored
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++
|
|
}
|