Debugger: fix evaluate expression when breakpoint is set on function without body inside object

#KT-15855 Fixed
This commit is contained in:
Natalia Ukhorskaya
2017-01-27 17:31:11 +03:00
committed by Nikolay Krasko
parent faac1c3156
commit 68f722b337
3 changed files with 23 additions and 19 deletions
@@ -36,6 +36,14 @@ fun fooOneLine(i: Int): Int { return 1 }
//Breakpoint!
fun fooEmpty(i: Int) {}
object A {
// EXPRESSION: test2()
// RESULT: 2: I
//Breakpoint!
@JvmStatic fun fooWithoutBodyInsideObject() = test2()
fun test2() = 2
}
fun main(args: Array<String>) {
aGet
aGet2
@@ -44,4 +52,6 @@ fun main(args: Array<String>) {
foo(2)
fooOneLine(2)
fooEmpty(2)
A.fooWithoutBodyInsideObject()
}