testdata for IDEA-128159

This commit is contained in:
Anna Kozlova
2018-06-21 19:36:49 +03:00
parent b098086f5c
commit 567fa3692d
2 changed files with 11 additions and 0 deletions
@@ -0,0 +1,10 @@
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 {}
}