33e6a85a2d
We exclude testData pattern from copyright scope
11 lines
204 B
Kotlin
Vendored
11 lines
204 B
Kotlin
Vendored
// RESOLVE_SCRIPT
|
|
import kotlin.contracts.InvocationKind
|
|
|
|
inline fun foo(block: () -> Unit) {
|
|
kotlin.contracts.contract {
|
|
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
|
|
}
|
|
|
|
block()
|
|
}
|