Specify type explicitly: suggest also types from overridden

So #KT-22092 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-05-08 16:24:50 +03:00
parent bf15d22ef1
commit 9a1253c5c7
5 changed files with 54 additions and 8 deletions
@@ -0,0 +1,9 @@
// DO_NOT_CHOOSE_NOTHING
interface I {
fun foo(): String?
}
class Test : I {
override fun foo()<caret> = null
}
@@ -0,0 +1,9 @@
// DO_NOT_CHOOSE_NOTHING
interface I {
fun foo(): String?
}
class Test : I {
override fun foo(): String? = null
}