// !DIAGNOSTICS: -UNUSED_EXPRESSION, -UNUSED_PARAMETER // !WITH_NEW_INFERENCE class A fun test1() { val foo = ::foo ::bar A::bar B::bar } fun test2() { fun foo(x: Any) {} fun foo() {} Unresolved::foo foo(Unresolved::foo) foo(Unresolved::unresolved) ::unresolved }