atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating / AnyTypeTransformationAssertionsBuilder / downCast

downCast

inline fun <T : Any, TSub : T> downCast(description: <ERROR CLASS>, subType: KClass<TSub>, subjectPlant: <ERROR CLASS><T?, out <ERROR CLASS>>, noinline assertionCreator: <ERROR CLASS><TSub>.() -> Unit, failureHandler: <ERROR CLASS><T, TSub>): <ERROR CLASS> (source)