// "Create method 'f'" "true-preview" class A { { f(A::foo); } static int foo() { return 42; } }