class Test { void foo() { final Foo a = new Foo(1); } } class Foo { Foo(T t) { } }