Hristijan
03/28/2024, 10:03 PMexpect inline fun
?
Or is there some known workaround at the moment without writing another function that's just a pass through?Alexander Zhirkevich
04/02/2024, 1:52 PM@OptIn(ExperimentalContracts::class)
@Suppress("EXPECTED_DECLARATION_WITH_BODY")
expect inline fun foo(block: () -> Unit) : Any {
contract {
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
}
error("Unreachable")
}