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
No error on use of `unsafe_cast`
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
unify_unresolved.php
blob
659f8016d321f5b55eec2a9b8c69c03c402f3639
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
function
test
(
arraykey
$x
):
void
{
5
$v
=
Vector
{
$x
};
6
$v
[] =
'foo'
;
7
hh_show
(
$v
);
// should be Vector<arraykey> not Vector<(arraykey | string)>
8
}