I was looking at Kotlin source. I found code ...
# announcements
l
I was looking at Kotlin source. I found code
contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) }
Where does
contract
come from? What does this code do?
k
I remember @yole mention that this is a feature currently been played with, that’s supposed to define a set of contracts a function will adhere to. However, it’s only visible in the src, but doesn’t do anything at the moment
That should answer where it comes from
👍 1