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
small refactorings
[hiphop-php.git]
/
hphp
/
hack
/
test
/
gi_patches
/
varray.php.exp
blob
cf69e457d965d87b8a91d7098fb9d23c57d1bf0c
1
<
?hh
2
3
/*
HH_FIXME
[
2071
] */
4
/*
HH_FIXME
[
4030
] */
5
function f
(
varray $v
) {
6
$v
[
3
] =
"foo";
7
return
$v
[
34897
];
8
}
9
10
/*
HH_FIXME
[
2071
] */
11
/*
HH_FIXME
[
4030
] */
12
function g
(
varray $v
) : <<
__Soft
>>
void
{
13
expect
<
string
>(
$v
[
0
]);
14
}
15
16
/*
HH_FIXME
[
2071
] */
17
function h
():
varray
{
18
return
varray
[
'billie'
,
'willie'
];
19
}
20
21
/*
HH_FIXME
[
2071
] */
22
function i
():
varray
{
23
$x
=
varray
[];
24
$x
[] =
'bob'
;
25
return
$x
;
26
}
27
28
function expect
<
T
>(
T $_
):
void
{}