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
New inference: improved error message for unresolved type
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
inout
/
shapes_remove_key2.php
blob
8aaeef07e2d9db3ae06bcc7e59ab483969333737
1
<
?hh
// strict
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
}