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
/
anon17.php
blob
f9f5b681be2ada7f125eaee63dac473b3ebd25d6
1
<
?hh
// strict
2
3
function
expects_vec_func_str
(
Vector
<(
function
():
string
)>
$vec
):
void
{}
4
5
function
test
():
void
{
6
$funcs
=
Vector
{ () ==>
1.0
, () ==>
0
, () ==>
''
};
7
8
expects_vec_func_str
(
$funcs
);
9
}