// !DIAGNOSTICS: -UNUSED_EXPRESSION class A fun main() { val foo = ::foo ::bar A::bar B::bar }