Evaluate Expression: fix function call from base class on object with subtype
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package funFromSuperClass
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
Derived().test()
|
||||
}
|
||||
|
||||
open class Base {
|
||||
fun foo() = 1
|
||||
|
||||
fun test() {
|
||||
//Breakpoint!
|
||||
val a = 1
|
||||
}
|
||||
}
|
||||
|
||||
class Derived: Base()
|
||||
|
||||
|
||||
// EXPRESSION: foo()
|
||||
// RESULT: 1: I
|
||||
Reference in New Issue
Block a user