package test import test.foo fun foo() { } class B { val ref = ::foo }