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
New inference: improved error message for unresolved type
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
pipe_operator_dollardollar_static_call.php
blob
094b5c2ee8e414d971bfc84937d502d567b1ea8f
1
<
?hh
// strict
2
3
class
Foo
{
4
public static function
fooMeth
():
void
{}
5
}
6
7
function
test_method_call
():
void
{
8
$foo
=
Foo
::
class
;
9
10
$foo
|
>
$$
::
fooMeth
();
// this is a legal call
11
$foo
|
>
$$
::
doesNotExist
();
// ...and this one doesn't exist
12
}