class FooImpl extends Foo { void m() { Foo f = new Foo() { }; } }