MethodReturnTypeFix: highlight only return statements when method return type doesn't match expected (IDEA-216275)

GitOrigin-RevId: d5f7dc3b03d68d249ba29532b0e8c0555cae60d6
This commit is contained in:
Artemiy Sartakov
2019-07-08 15:09:05 +03:00
committed by intellij-monorepo-bot
parent ba328fd25a
commit 642c65dd11
37 changed files with 167 additions and 217 deletions
@@ -1,5 +1,5 @@
class Bug {
static A <error descr="Invalid return type">test</error>(A[] as) {
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>
}