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
Disallow ... without type in function typehints
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
deprecated_inst_meth.php
blob
fe8f6da01a5a734d9645dddc9426ae0ff90245c4
1
<
?hh
// strict
2
3
class
X
{
4
<<
__Deprecated
(
'use bar() instead'
)>>
5
public function
foo
():
void
{}
6
}
7
8
function
f
(
X
$a
): (
function
(
X
):
void
) {
9
return
inst_meth
(
$a
,
'foo'
);
10
}