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
/
function_hint_with_variadic_parameter_not_covariant_2.php
blob
cd54d085681e62ade547e02d1cfcf0356fc6b7a3
1
<
?hh
//strict
2
3
class
A
{}
4
5
class
B
extends
A
{}
6
7
function
variadic_B
(
B
...
$y
):
void
{}
8
9
function
hint_variadic_A
((
function
(
A
...):
void
)
$f
):
void
{}
10
11
function
test
():
void
{
12
hint_variadic_A
(
fun
(
'variadic_B'
));
13
}