Debugger: fix evaluate expression when breakpoint is set on function without body inside object
#KT-15855 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
faac1c3156
commit
68f722b337
+10
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user