mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-141923 Errors in for-each statement header aren't highlighted if there're errors in its body
This commit is contained in:
+1
-2
@@ -1,9 +1,8 @@
|
||||
|
||||
interface Container<T extends Content> extends Iterable<T> {}
|
||||
interface Content {}
|
||||
|
||||
class Main {
|
||||
public static void doSomething(Container container) {
|
||||
for (<error descr="Incompatible types. Found: 'java.lang.Object', required: 'Content'">Content content : container</error>) {}
|
||||
for (<error descr="Incompatible types. Found: 'Content', required: 'java.lang.Object'">Content content</error> : container) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user