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

This commit is contained in:
Michael Bogdanov
2016-02-08 10:26:41 +03:00
parent 9e5c387d6c
commit 848549dd5d
5 changed files with 5 additions and 43 deletions
@@ -1,22 +0,0 @@
package remappedParameterInInline
inline fun watch(p: String, f: (String) -> Int) {
// EXPRESSION: p
// RESULT: "mno": Ljava/lang/String;
//Breakpoint!
f(p)
}
inline fun inlineDefault(p: Int = 1, f: (Int) -> Unit) {
// EXPRESSION: p
// RESULT: 1: I
//Breakpoint!
f(p)
}
fun main(args: Array<String>) {
val local = "mno"
watch(local) { it.length }
inlineDefault { it }
}