fix for KT-29471
#KT-29471 Fixed
This commit is contained in:
committed by
Alexey Tsvetkov
parent
220a8f2872
commit
bc207ed8db
@@ -0,0 +1,11 @@
|
||||
package lib
|
||||
|
||||
interface Interface {
|
||||
fun getInt(): Int
|
||||
}
|
||||
|
||||
inline fun getCounter(crossinline init: () -> Int): Interface =
|
||||
object : Interface {
|
||||
var value = init()
|
||||
override fun getInt(): Int = value++
|
||||
}
|
||||
Reference in New Issue
Block a user