Debugger: refactor smart step into to use descriptors instead of psi elements (KT-13485)
#KT-13485 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
f7203da2d6
commit
0fb5a18a26
+12
@@ -45,6 +45,14 @@ fun main(args: Array<String>) {
|
||||
// RESUME: 1
|
||||
//Breakpoint!
|
||||
N(1)
|
||||
// SMART_STEP_INTO_BY_INDEX: 1
|
||||
// RESUME: 1
|
||||
//Breakpoint!
|
||||
O(1)
|
||||
// SMART_STEP_INTO_BY_INDEX: 1
|
||||
// RESUME: 1
|
||||
//Breakpoint!
|
||||
O(1, "1")
|
||||
|
||||
}
|
||||
|
||||
@@ -100,4 +108,8 @@ class N {
|
||||
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
class O<T>(i: T) {
|
||||
constructor(i: Int, j: T): this(j) {
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
// KT-13485
|
||||
package smartStepIntoInterfaceFun
|
||||
|
||||
interface ObjectFace<T> {
|
||||
fun act()
|
||||
fun act2(t: T)
|
||||
}
|
||||
|
||||
class ObjectClass : ObjectFace<Int> {
|
||||
override fun act() {
|
||||
println()
|
||||
}
|
||||
override fun act2(t: Int) {
|
||||
println()
|
||||
}
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val simple: ObjectFace<Int> = ObjectClass()
|
||||
// SMART_STEP_INTO_BY_INDEX: 1
|
||||
// RESUME: 1
|
||||
//Breakpoint!
|
||||
simple.act()
|
||||
// SMART_STEP_INTO_BY_INDEX: 1
|
||||
// RESUME: 1
|
||||
//Breakpoint!
|
||||
simple.act2(1)
|
||||
}
|
||||
Reference in New Issue
Block a user