Sign in
third-party-mirror
/
typetools
/
checker-framework
/
refs/heads/main
/
.
/
checker
/
tests
/
index
/
ConstantsIndex.java
blob: 22871601e5cfdff683146eef88551e69bf94e343 [
file
] [
log
] [
blame
]
import
org
.
checkerframework
.
common
.
value
.
qual
.
MinLen
;
public
class
ConstantsIndex
{
void
test
()
{
int
@MinLen
(
3
)
[]
arr
=
{
1
,
2
,
3
};
int
i
=
arr
[
1
];
// :: error: (array.access.unsafe.high.constant)
int
j
=
arr
[
3
];
}
}