class A { void f() { B b = new B(); Integer i = b.<ref>foo(); } }