blob: 14afacc41dffa113c4d22051660a0ebba6877fbc [file]
class Bug {
static A test(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;
}
static class A {}
static class B {}
}