repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make `Switch` constructor more precise
[hiphop-php.git]
/
hphp
/
test
/
slow
/
const_array_assign.php
blob
aa61a28fe3efd02561262656236a74338a335688
1
<
?hh
// strict
2
3
class
ConstArrayAssign
{
4
const
varray
<
int
>
MyData
=
varray
[
1
,
2
,
3
];
5
6
function
assign_my_data
(
int
$x
):
void
{
7
self
::
MyData
[
0
] =
$x
;
8
}
9
}
10