blob: 67d4a515da152c16b907d615a26ba3fea372b7d4 [file] [log] [blame]
import org.checkerframework.checker.index.qual.LTEqLengthOf;
import org.checkerframework.checker.index.qual.LTLengthOf;
public class Issue20 {
// An issue with LUB that results in losing information when unifying.
int[] a, b;
void test(@LTLengthOf("a") int i, @LTEqLengthOf({"a", "b"}) int j, boolean flag) {
@LTEqLengthOf("a") int k = flag ? i : j;
}
}