abstract class A { abstract S bar(); void foo(A a) { int x = a.bar().length; } }