Join Slack
Powered by
Hello! In my code I had used object literals that ...
# intellij
n
n3o59hf
12/09/2015, 2:05 PM
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) } }
Open in Slack
Previous
Next