Inspectopedia Help

Implicit 'Nothing?' type

Reports variables and functions with the implicit Nothing? type.

Example:

fun foo() = null

The quick fix specifies the return type explicitly:

fun foo(): Nothing? = null

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Kotlin, @snapshot@

Last modified: 13 July 2023