interface Pair { A get(); } class B { void f(Pair p) { V v = p.get(); } { Pair p = null; f(p); } }