← Docs
kotlin-stdlib / kotlin.contracts / ContractBuilder / returnsNotNull

returnsNotNull

Common
JVM
JS
Native
1.0
abstract fun returnsNotNull ( ) : ReturnsNotNull
(source)

Describes a situation when a function returns normally with any value that is not null .

Use SimpleEffect.implies function to describe a conditional effect that happens in such case.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .