Step into functions with local variable on first line under "Skip simple getters" (KT-14488)
(cherry picked from commit 9423d65) #KT-14488 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
3f5d3e5dbc
commit
8865c0be34
@@ -1,9 +1,11 @@
|
||||
package skipSimpleGetter
|
||||
|
||||
val top = 1
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a = A(1)
|
||||
//Breakpoint!
|
||||
a.a1 + a.a2 + a.a3 + a.a4
|
||||
a.a1 + a.a2 + a.a3 + a.a4 + top
|
||||
}
|
||||
|
||||
class A(val a4: Int) {
|
||||
@@ -21,5 +23,5 @@ class A(val a4: Int) {
|
||||
}
|
||||
}
|
||||
|
||||
// STEP_INTO: 21
|
||||
// STEP_INTO: 3
|
||||
// SKIP_GETTERS: true
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package skipSimpleGetterLocalVal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
class Test {
|
||||
val a2 = 12
|
||||
}
|
||||
|
||||
val t = Test()
|
||||
|
||||
val a1 = 1
|
||||
|
||||
//Breakpoint!
|
||||
a1 + t.a2 // 1
|
||||
|
||||
foo() // 2
|
||||
}
|
||||
|
||||
fun foo() {}
|
||||
|
||||
// SKIP_GETTERS: true
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package skipSimpleGetterMethodWithProperty
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
test()
|
||||
foo()
|
||||
}
|
||||
|
||||
fun test() {
|
||||
var a = 12
|
||||
foo()
|
||||
}
|
||||
|
||||
fun foo() {}
|
||||
|
||||
// SKIP_GETTERS: true
|
||||
Reference in New Issue
Block a user