adibfara
10/30/2018, 7:36 AMAnimal
class that has abstract fun run()
and you have class Dog : Anima() { //implements run }
and you have an instance of dog and usage of run()
somewhere
kotlin
val dog = Dog()
dog.run()
how do you navigate to run
implementation in Dog?karelpeeters
10/30/2018, 8:50 AMSaiedmomen
10/30/2018, 8:56 AMfrellan
10/30/2018, 9:07 AMMike
10/30/2018, 10:42 AMadibfara
10/30/2018, 1:00 PMMike
10/30/2018, 1:10 PMdog
is at that line. I know WE can see it in this example, but…adibfara
10/30/2018, 2:36 PMrun()
unless it is an abstract class itselfkarelpeeters
10/30/2018, 2:37 PMval dog = Dog()
it has type Dog
so it should all just work, right?adibfara
10/30/2018, 2:38 PMMike
10/30/2018, 2:48 PMdog
is what I was saying.
And how many times have you had people say to you “it shouldn’t be that hard to…“.
If you feel this way, raise a feature request on IntelliJ ticket system. They’ll let you know if it’s feasible or not…karelpeeters
10/30/2018, 2:54 PMabstract class Parent {
abstract fun test()
}
class Child: Parent() {
override fun test() { println("child") }
}
class Other: Parent() {
override fun test() { println("other") }
}
fun main(args: Array<String>) {
val child = Child()
child.test()
}
adibfara
10/30/2018, 2:56 PMkarelpeeters
10/30/2018, 2:56 PMCtrl+B
.adibfara
10/30/2018, 2:57 PM