Files
kotlin-fork/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunction.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

27 lines
414 B
Kotlin
Vendored

// FILE: inlineFunction.kt
package inlineFunction
import inlineFunctionOtherPackage.*
fun main(args: Array<String>) {
//Breakpoint!
val a = 1
}
inline fun foo() = 1
// EXPRESSION: myFun { 1 }
// RESULT: 1: I
// EXPRESSION: foo()
// RESULT: 1: I
// FILE: lib.kt
package inlineFunctionOtherPackage
inline fun myFun(f: () -> Int): Int = f()
val String.prop: String
get() {
return "a"
}