Fix for KT-10659: Debugger: Evaluate Expression and Watches fail for inline function parameter passed by reference

#KT-10659 Fixed
This commit is contained in:
Michael Bogdanov
2016-01-25 17:06:31 +03:00
parent 069282cb6e
commit d4df7aaabc
5 changed files with 41 additions and 2 deletions
@@ -0,0 +1,14 @@
package remappedParameterInInline
inline fun watch(p: String, f: (String) -> Int) {
// EXPRESSION: p
// RESULT: "mno": Ljava/lang/String;
//Breakpoint!
f(p)
}
fun main(args: Array<String>) {
val local = "mno"
watch(local) { it.length }
}