"Convert to anonymous object" intention: suggest for kotlin fun interface

#KT-37749 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-03-26 12:00:18 +09:00
committed by Roman Golyshev
parent 0abe3a6c39
commit 6a1923a477
4 changed files with 37 additions and 8 deletions
@@ -0,0 +1,9 @@
fun interface KotlinFace {
fun single()
}
fun useSam(kf: KotlinFace) {}
fun callSam() {
useSam(kf = <caret>KotlinFace {})
}
@@ -0,0 +1,13 @@
fun interface KotlinFace {
fun single()
}
fun useSam(kf: KotlinFace) {}
fun callSam() {
useSam(kf = object : KotlinFace {
override fun single() {
}
})
}