iterate over: correct offset to detect template applicability

This commit is contained in:
Anna Kozlova
2012-02-02 21:17:52 +04:00
parent e497b81929
commit 24ec63e74e
6 changed files with 79 additions and 0 deletions
@@ -0,0 +1,11 @@
import java.lang.annotation.Annotation;
// "Iterate" "true"
class Test {
void foo() {
for (Annotation annotation : getClass().getAnnotations()) {
}
}
}
@@ -0,0 +1,11 @@
import java.lang.annotation.Annotation;
// "Iterate" "true"
class Test {
void foo() {
for (Annotation annotation : getClass().getAnnotations()) {
}
}
}
@@ -0,0 +1,6 @@
// "Iterate" "true"
class Test {
void foo() {
getClass().getAnnotatio<caret>ns()
}
}
@@ -0,0 +1,6 @@
// "Iterate" "true"
class Test {
void foo() {
getClass().getAnnotations()<caret>
}
}