[K/N][tests] Added a test on stepping through inline arguments
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// KIND: STANDALONE_LLDB
|
||||
// LLDB_TRACE: stepThroughInlineArguments.txt
|
||||
// FILE: main.kt
|
||||
fun bar(x: Int): Int {
|
||||
val res = foo(
|
||||
x * 2,
|
||||
x + 2
|
||||
)
|
||||
return res
|
||||
}
|
||||
|
||||
fun main() {
|
||||
println(bar(42))
|
||||
}
|
||||
|
||||
// FILE: lib.kt
|
||||
inline fun foo(x: Int, y: Int): Int {
|
||||
return x +
|
||||
y
|
||||
}
|
||||
Reference in New Issue
Block a user