Join Slack
Powered by
Is_there_any_way_to_do_something_like_this_with_cu...
# announcements
c
Can
07/24/2019, 1:40 PM
Is_there_any_way_to_do_something_like_this_with_current_state_of_contracts_.txt
Is_there_any_way_to_do_something_like_this_with_current_state_of_contracts_.txt
d
dmitriy.novozhilov
07/25/2019, 10:02 AM
what you want to describe with that contract? if you need to tell compiler that
block
is called only in some cases, you can just write
callsInPlace(block, InvocationKind.AT_MOST_ONCE)
s
Stephan Schroeder
07/25/2019, 10:08 AM
maybe helpful:
https://blog.kotlin-academy.com/understanding-kotlin-contracts-f255ded41ef2
Open in Slack
Previous
Next