// ISSUE: KT-66243 // IGNORE_BACKEND_K1: ANY // Reason: Could not load module class A class Test { fun add(a: T) {} var lambdaInVariable: ((A) -> Unit)? = null } fun builder(x: Test.() -> Unit): Test { return Test().apply(x) } fun check() { val x = builder { add(1) lambdaInVariable = {} } } fun box(): String { check() return "OK" }