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
/
void_fun_in_mixed_context.php
blob
d60c601288579553698cc98033f27ad4dcfc4b8e
1
<
?hh
// strict
2
3
function
expectMixedReturn
((
function
(
int
):
mixed
)
$f
):
void
{ }
4
5
6
function
testit
():
void
{
7
expectMixedReturn
((
int
$x
) ==> {
echo
"c"
; });
8
}