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