mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
MethodReturnTypeFix: highlight only return statements when method return type doesn't match expected (IDEA-216275)
GitOrigin-RevId: d5f7dc3b03d68d249ba29532b0e8c0555cae60d6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ba328fd25a
commit
642c65dd11
+1
-1
@@ -11,7 +11,7 @@ interface Foo<T> {
|
||||
}
|
||||
|
||||
class Bar {
|
||||
Foo<List<String>> <error descr="Invalid return type">transform</error>(final Foo<? extends String> foo) {
|
||||
Foo<List<String>> transform(final Foo<? extends String> foo) {
|
||||
<error descr="Incompatible types. Found: 'Foo<? extends java.util.List<? extends java.lang.String>>', required: 'Foo<java.util.List<java.lang.String>>'">return foo
|
||||
.map(v2 -> tuple(v2))
|
||||
.onClose();</error>
|
||||
|
||||
Reference in New Issue
Block a user