Smart completion to use super type for override if no explicit type specified

This commit is contained in:
Valentin Kipyatkov
2016-04-01 17:02:00 +03:00
parent 7af67da4ac
commit 3aff4d4c17
4 changed files with 54 additions and 10 deletions
@@ -0,0 +1,13 @@
abstract class Base {
abstract fun foo(): Int
}
class Derived : Base() {
override fun foo() = <caret>
}
fun getInt(): Int = 0
fun getString(): String = ""
// EXIST: getInt
// ABSENT: getString
@@ -0,0 +1,13 @@
abstract class Base {
abstract val foo: Int
}
class Derived : Base() {
override val foo = <caret>
}
fun getInt(): Int = 0
fun getString(): String = ""
// EXIST: getInt
// ABSENT: getString