assertNull

open fun <E : KoBaseProvider> E?.assertNull(additionalMessage: String? = null, testName: String? = null): Nothing(source)

Deprecated (with error)

katachi cannot report an assertion that names no declaration. Use mustBeEmpty.

Replace with

listOfNotNull(this).mustBeEmpty()

Konsist's own null assertion. Not usable here — see assertTrue.

Example 1: what to write instead

classes().firstOrNull().assertNull()                          // compile error
classes().filter { it.hasInternalModifier }.mustBeEmpty() // ok