Smart completion to use super type for override if no explicit type specified
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user