e9c9d5731e
This is in preparation for enabling the tests for FIR which will be easier to do when the tests are on the new infrastructure.
30 lines
453 B
Kotlin
Vendored
30 lines
453 B
Kotlin
Vendored
|
|
// FILE: test.kt
|
|
inline fun foo(stringMaker: () -> String = { "OK" }): String {
|
|
return stringMaker()
|
|
}
|
|
|
|
inline fun foo2(stringMaker: () -> String = {
|
|
"OK"
|
|
// Comment
|
|
}): String {
|
|
return stringMaker()
|
|
}
|
|
|
|
fun box(): String {
|
|
foo()
|
|
foo2()
|
|
return "OK"
|
|
}
|
|
|
|
// EXPECTATIONS
|
|
// test.kt:15 box
|
|
// test.kt:3 box
|
|
// test.kt:4 box
|
|
// test.kt:3 box
|
|
// test.kt:16 box
|
|
// test.kt:7 box
|
|
// test.kt:11 box
|
|
// test.kt:8 box
|
|
// test.kt:17 box
|