Hello! In my code I had used object literals that ...
# intellij
n
Hello! In my code I had used object literals that reference themselves. Idea suggested those to be replaced with Lambdas. Is there a way to reference this lambda inside of it (Idea don't touch
this
and creates broken code)? Code sample:
Copy code
object : Runnable {
            override fun run() {
               doThings(this)
            }
        }