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 standalone enums normal python classes
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
inout
/
shapes_remove_key2.php
blob
ee72b98d0b716c66a6120a9b85fbd2bd4ec873cd
1
<
?hh
2
3
function
test
():
void
{
4
$s
=
shape
(
'x'
=>
4
,
'y'
=>
'aaa'
);
5
Shapes
::
removeKey
(
$s
,
'x'
);
// error for safe-pass-by-ref
6
$s
[
'y'
];
// no error
7
}