// ISSUE: KT-55281 // IGNORE_LIGHT_ANALYSIS // IGNORE_BACKEND_K2: ANY // REASON: red code (see corresponding diagnostic test) fun box(): String { build { this as DerivedBuildee<*> consumeNullableAny(getTypeVariable()) } return "OK" } class TargetType fun consumeNullableAny(value: Any?) {} open class Buildee { fun getTypeVariable(): TV = storage private var storage: TV = null as TV } class DerivedBuildee: Buildee() fun build(instructions: Buildee.() -> Unit): Buildee { return DerivedBuildee().apply(instructions) }