class A{ class B{} void foo(T a, B b){} { foo("", new B()); } }