Files
kotlin-fork/idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/inlineFunctionSameLines.kt
T
Yan Zhulanow 472ec72eb9 Refactor debugger tests
1. Move tests to their own module
2. Avoid sharing the 'tinyApp' project between tests
3. Clean up option directive handling
2019-10-08 19:13:56 +09:00

26 lines
416 B
Kotlin
Vendored

// FILE: inlineFunctionSameLines.kt
package inlineFunctionSameLines
fun main(args: Array<String>) {
if (1 > 2) {
val a = 1
}
else {
val b = 2
}
//Breakpoint!
myFun(1)
val a = 1
}
// FILE: inlineFunctionSameLinesDependent.kt
package inlineFunctionSameLines
inline fun <reified T> myFun(t: T): Int {
val a = 1
val b = 2
val c = 3
val d = 4
return 1
}