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
Check for void/noreturn in conditionals
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
use_namespace.php
blob
6c9d88a796d073a57ea2775e84cf63445fa12138
1
<
?hh
// strict
2
3
namespace
herp
{
4
class
derp
{}
5
}
6
7
namespace
herp\derp
{
8
function
foo
():
void
{}
9
}
10
11
namespace
{
12
use namespace
herp\derp
;
13
14
function
main
():
void
{
15
derp\foo
();
16
new
derp
();
17
}
18
}