blob: 90d2bb18a0d0d2b66f249c191b39ff11e5214438 [file] [log] [blame]
import org.checkerframework.checker.index.qual.*;
public class IndexSameLen {
public static void bug2() {
int[] a = {1, 2, 3, 4, 5};
int @SameLen("a") [] b = a;
@IndexFor("a") int i = 2;
a[i] = b[i];
for (int j = 0; j < a.length; j++) {
a[j] = b[j];
}
}
}