if I have a class with a couple of methods requiri...
# getting-started
e
if I have a class with a couple of methods requiring
@OptIn(ExperimentalContracts::class)
and I choose to put it at the level file (
@file:OptIn(ExperimentalContracts::class)
) will still only those methods require that marker or the whole class now? Also, I marked the class methods, but in the docs I read
Only the top-level functions can have a contract for now
which doesn't seem the case.. maybe it's outdated?