// WITH_STDLIB // ISSUE: KT-65262 interface Consumer public fun buildConsumer( block: (Consumer) -> Unit ): T = "OK" as T fun expectConsumerString(x: Consumer) {} fun box() = try { buildConsumer { x -> val y by lazy { expectConsumerString(x) "OK" } if (y.length != 2) throw RuntimeException("fail 1") } } finally { }