ConvertToAnonymousObjectFix: do not suggest when there is no lambda

#KT-31912 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-11-26 16:05:41 +09:00
committed by Roman Golyshev
parent d3c54f664b
commit 09304bbd54
6 changed files with 47 additions and 9 deletions
@@ -0,0 +1,8 @@
// "Convert to anonymous object" "true"
interface I {
fun foo(): String
}
fun test() {
val i = <caret>I({ "" })
}