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.
This type is used as a receiver type of the lambda function passed to the contract function.
See Also
Specifies that the function parameter lambda is invoked in place.
Describes a situation when a function returns normally, without any exceptions thrown.
Describes a situation when a function returns normally with the specified return value.
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.contracts/-contract-builder/index.html