mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
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:
11
compiler/testData/codegen/bytecodeText/inline/remappedLocalVar.kt
vendored
Normal file
11
compiler/testData/codegen/bytecodeText/inline/remappedLocalVar.kt
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
inline fun watch(p: String, f: (String) -> Int) {
|
||||
f(p)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val local = "mno"
|
||||
watch(local) { it.length }
|
||||
}
|
||||
|
||||
// 2 LOCALVARIABLE p
|
||||
// 1 LOCALVARIABLE p\$iv
|
||||
Reference in New Issue
Block a user