public class Method { public static void foo() { (new k.Class()).function(); } } // REF: (in k.Class).function()