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
Error on self::class on non final classes
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
function_hint_with_variadic_parameter_wrong_return_type.php
blob
e66d286c178de0788f80bc67ddb7cec0eff30f72
1
<
?hh
//strict
2
3
function
variadic_int
(
int
...
$y
):
void
{}
4
5
function
hint_different_return_type
((
function
(
int
):
string
)
$f
):
void
{}
6
7
function
test
():
void
{
8
hint_different_return_type
(
fun
(
'variadic_int'
));
9
}