Package-level declarations

Types

Link copied to clipboard
interface CallsInPlace : Effect
Link copied to clipboard
Link copied to clipboard
interface ContractBuilder

Declaration-only DSL interpreted by K2, with no runtime builder.

Link copied to clipboard
interface Effect

Compile-time effects; these interfaces are not instantiated by a contract declaration.

Link copied to clipboard
annotation class ExperimentalContracts

Opt-in marker for compile-time function contract declarations.

Link copied to clipboard

Number of in-place calls during the owning function invocation.

Link copied to clipboard
interface Returns : SimpleEffect
Link copied to clipboard
Link copied to clipboard
interface SimpleEffect : Effect

Functions

Link copied to clipboard
inline fun contract(builder: ContractBuilder.() -> Unit)

Describe effects at the beginning of a function body. The block is never executed.