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
/
parses_as_class_const.php
blob
4f9086206bb3cf7da6d16c07e69a2d1dcba76edd
1
<
?hh
2
3
final class
Foo
{
4
public static function
bar
(
int
$x
):
void
{}
5
}
6
7
function
qux
():
void
{
8
// This parses into Foo::bar, so allow it
9
$x
=
Foo
::{
'bar'
}<>;
10
$x
(
4
);
11
}
12
13
<<
__EntryPoint
>>
14
function
main
():
void
{
15
qux
();
16
}