Evaluate expression: fix exception for breakpoints on object header (for accessor methods)

This commit is contained in:
Natalia Ukhorskaya
2014-11-12 11:51:08 +03:00
parent dab9411c5d
commit a9f9049223
4 changed files with 49 additions and 1 deletions
@@ -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