IDEA-141923 Errors in for-each statement header aren't highlighted if there're errors in its body

This commit is contained in:
Alexey Kudravtsev
2015-06-26 14:42:13 +03:00
parent 5465f1cc88
commit 9e99eabbb6
8 changed files with 81 additions and 68 deletions
@@ -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) {}
}
}