472ec72eb9
1. Move tests to their own module 2. Avoid sharing the 'tinyApp' project between tests 3. Clean up option directive handling
30 lines
503 B
Kotlin
Vendored
30 lines
503 B
Kotlin
Vendored
package inlineOnly
|
|
|
|
fun main(args: Array<String>) {
|
|
//Breakpoint!
|
|
myPrint("OK")
|
|
|
|
forEach { print2("123")}
|
|
|
|
println("OK") //stdlib test
|
|
}
|
|
|
|
fun print2(s: String){
|
|
val z = s;
|
|
}
|
|
|
|
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
|
@kotlin.internal.InlineOnly
|
|
inline fun myPrint(s: String) {
|
|
val z = s;
|
|
}
|
|
|
|
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
|
@kotlin.internal.InlineOnly
|
|
inline fun forEach(s: () -> Unit) {
|
|
for (i in 1..2) {
|
|
s()
|
|
}
|
|
}
|
|
|
|
// STEP_INTO: 10 |