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
Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
unset_shape_idx.php
blob
9bb31d04ab469b0a8ba047098ca2c34f1adbca14
1
<
?hh
// strict
2
3
type s
=
shape
(
'blah'
=>
int
);
4
function
f
(
s
$s
):
int
{
5
// even though we allow unset on *array* indexes,
6
// we shouldn't allow it on shapes
7
unset
(
$s
[
'blah'
]);
8
return
$s
[
'blah'
];
9
}