correct level in highlighting:

highlight element X only when visiting X or its ascendant
This commit is contained in:
Alexey Kudravtsev
2014-02-10 20:03:58 +04:00
parent e0792ea2f7
commit ad661d92e4
33 changed files with 598 additions and 314 deletions
@@ -22,8 +22,12 @@ class a {
for (Object oi: (Iterable)o) {}
for (<error descr="Incompatible types. Found: 'double', required: 'int'">int i:db</error>) {
// error descr="Incompatible types. Found: 'double', required: 'int'" was not shown because there is an error in nested for
for (int i : db) {
for (<error descr="Incompatible types. Found: 'java.lang.Object', required: 'int'">int p: list</error>) {}
}
for (int gjkh : <error descr="foreach not applicable to type 'int'">222</error>) {
}
}
}