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,11 @@
// "Convert to anonymous object" "false"
// ACTION: Introduce import alias
// ACTION: Split property declaration
// ERROR: Interface I does not have constructors
interface I {
fun foo(): String
}
fun test() {
val i = <caret>I()
}