33e6a85a2d
We exclude testData pattern from copyright scope
10 lines
193 B
Kotlin
Vendored
10 lines
193 B
Kotlin
Vendored
import kotlin.contracts.InvocationKind
|
|
|
|
inline fun f<caret>oo(block: () -> Unit) {
|
|
kotlin.contracts.contract {
|
|
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
|
|
}
|
|
|
|
block()
|
|
}
|