Fix Evaluate Expression for inline functions from multifile package class.

Find main class generated for debugger by its name instead of relativePath length.
 #KT-22311 Fixed
This commit is contained in:
Natalia Selezneva
2018-01-15 15:20:02 +03:00
parent c5982e7ff5
commit dbd7ceb5fd
8 changed files with 41 additions and 8 deletions
@@ -16,4 +16,4 @@ interface T {
// RESULT: 1: I
// EXPRESSION: object: T {}
// RESULT: instance of ceObject.DebugFileKt$generated_for_debugger_kotlin_rulezzzz$1(id=ID): LceObject/DebugFileKt$generated_for_debugger_kotlin_rulezzzz$1;
// RESULT: instance of ceObject.Generated_for_debugger_class$generated_for_debugger_fun$1(id=ID): LceObject/Generated_for_debugger_class$generated_for_debugger_fun$1;
@@ -0,0 +1,10 @@
package inlineFunInMultiFilePackage
fun main(args: Array<String>) {
//Breakpoint!
val a = 1
}
// EXPRESSION: multiFilePackage.foo { 1 }
// RESULT: 1: I
@@ -0,0 +1,8 @@
LineBreakpoint created at inlineFunInMultiFilePackage.kt:5
Run Java
Connected to the target VM
inlineFunInMultiFilePackage.kt:5
Compile bytecode for multiFilePackage.foo { 1 }
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,5 @@
@file:JvmMultifileClass
@file:JvmName("NewName")
package multiFilePackage
inline fun foo(f: () -> Int) = f()