Do not convert anonymous object to lambda if its function is recursive

#KT-10348 Fixed
This commit is contained in:
Natalia Ukhorskaya
2015-12-17 13:25:55 +03:00
parent 43476bd773
commit d40e9ffc13
3 changed files with 23 additions and 0 deletions
@@ -0,0 +1,12 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
fun foo(runnable: Runnable) {}
fun bar() {
foo(<caret>object : Runnable {
override fun run() {
run()
}
})
}