// FIR_IDENTICAL // !LANGUAGE: +DisableCompatibilityModeForNewInference // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION fun bar(): Int = 0 object Scope { fun foo(f: () -> T): T = f() fun bar(x: Int = 0): String = "" fun test() { val r1 = foo(::bar) r1 val r2 = foo(Scope::bar) r2 } }