// ISSUE: KT-54400 // IGNORE_LIGHT_ANALYSIS // IGNORE_BACKEND_K1: ANY // REASON: red code (see corresponding diagnostic test) fun box(): String { build { typeVariableMutableProperty = "" } return "OK" } class Buildee { var typeVariableMutableProperty: TV get() = storage set(value) { storage = value } private var storage: TV = "" as TV } fun build(instructions: Buildee.() -> Unit): Buildee { return Buildee().apply(instructions) }