package test; public class TestA extends TestB { public TestB foo() { return null; } }