Files
kotlin-fork/compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt
T
2021-02-02 17:53:53 +03:00

35 lines
483 B
Kotlin
Vendored

// FILE: 1.kt
// NO_SMAP_DUMP
package test
inline fun annotatedWith2(crossinline predicate: () -> Boolean) =
{ any { predicate() } }()
inline fun annotatedWith(crossinline predicate: () -> Boolean) =
annotatedWith2 { predicate() }
inline fun any(s: () -> Boolean) {
s()
}
// FILE: 2.kt
import test.*
fun box(): String {
var result = "fail"
annotatedWith { result = "OK"; true }
return result
}
inline fun test(z: () -> Unit) {
z()
}