// ISSUE: KT-64876 class Controller fun generate1(lambda: T1.(Controller) -> Unit): T1 = TODO() fun generate2(lambda: Controller.(T2) -> Unit): T2 = TODO() fun consume(f: Controller) {} fun consumeString(f: String) {} fun main() { // We don't expect to allow running PCLA with not fixed TV as receiver // because all the calls should be resolved inside its member scope and we can't do that properly generate1 { consume(it) }.length generate2 { consume(this) }.length generate2 { consumeString(it) }.length }