A (A[] as) { for (<error descr="Incompatible types. Found: 'Bug.B', required: 'Bug.A'">B b</error> : as) { <error descr="Incompatible types. Found: 'Bug.B', required: 'Bug.A'">return b;</error> } return null; }