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
Updating submodules
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
function_pointer
/
bad_syntax.php
blob
79a8c1b32906a6810f96cd1d14c8011d046edb14
1
<
?hh
2
3
final class
Foo
{
4
public static function
bar
(
int
$x
):
void
{}
5
}
6
7
function
qux
():
void
{
8
$y
=
new
Foo
();
9
$x
=
$y
::{
'bar'
}<>;
10
$x
(
4
);
11
}
12
13
function
adze
():
void
{
14
$y
=
new
Foo
();
15
$z
=
'bar'
;
16
$x
=
$y
::
$z
<>;
17
$x
(
4
);
18
}