Package-level declarations

Experimental DSL for declaring custom function contracts.

Types

Link copied to clipboard

An effect of calling a functional parameter in place.

Since Kotlin 1.3
Link copied to clipboard

An effect of some condition being true after observing another effect of a function.

Since Kotlin 1.3
Link copied to clipboard

Provides a scope, where the functions of the contract DSL, such as returns, callsInPlace, etc., can be used to describe the contract of a function.

Since Kotlin 1.3
Link copied to clipboard

Represents an effect of a function invocation, either directly observable, such as the function returning normally, or a side-effect, such as the function's lambda parameter being called in place.

Since Kotlin 1.3
Link copied to clipboard
annotation class ExperimentalContracts

This marker distinguishes the experimental contract declaration API and is used to opt-in for that feature when declaring contracts of user functions.

Since Kotlin 1.3
Link copied to clipboard

Specifies how many times a function invokes its function parameter in place.

Since Kotlin 1.3
Link copied to clipboard

Describes a situation when a function returns normally with a given return value.

Since Kotlin 1.3
Link copied to clipboard

Describes a situation when a function returns normally with any non-null return value.

Since Kotlin 1.3
Link copied to clipboard

An effect that can be observed after a function invocation.

Since Kotlin 1.3

Functions

Link copied to clipboard

Specifies the contract of a function.

Since Kotlin 1.3