Kotlin recursive problem when type checking
I have the following code which i think is valid, because the recursion happens as a result of a callback. It's not called directly as a result of the function call. But the compiler seems to think there is a recursion issue
interface SomethingCallBack {
fun onSomething()
}
class A {
private fun createModel() = SpinModel(spinWheelListener)
private val spinWheelListener = object : SomethingCallBack {
override fun onSomething() {
val anotherModel =...