class A { fun foo(){} } val y: A = A() val x = A::foo