// !LANGUAGE: +UnrestrictedBuilderInference // WITH_STDLIB import kotlin.experimental.ExperimentalTypeInference class A class B {} class Scope( val key: K11, ) { fun emit(key: K22) {} } @OptIn(ExperimentalTypeInference::class) fun B.scoped(binder: Scope.() -> Unit) {} fun run(x: B) { x.scoped { emit(key) } } fun box(): String { run(B()) return "OK" }