package test class Test { fun foo() {} } class Bar val bar = Test::foo