Evaluate expression: fix exception for breakpoints on object header (for accessor methods)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package onObjectHeader
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
A.test()
|
||||
}
|
||||
|
||||
object A {
|
||||
fun test() {
|
||||
lambda {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
|
||||
fun lambda(f: () -> Unit) {
|
||||
f()
|
||||
}
|
||||
|
||||
private fun foo() {
|
||||
val a = 2
|
||||
}
|
||||
}
|
||||
|
||||
// STEP_INTO: 7
|
||||
|
||||
// EXPRESSION: 1 + 1
|
||||
// RESULT: 2: I
|
||||
Reference in New Issue
Block a user