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 module declarations within a module
[hiphop-php.git]
/
hphp
/
hack
/
test
/
hover
/
internal_keyword_method.php
blob
1206dc823f35d4ec95a86e1811de49cb6c61c683
1
//// modules.php
2
<
?hh
3
<<
file
:
__EnableUnstableFeatures
(
"modules"
)>>
4
5
new
module foo
{}
6
7
//// test.php
8
<
?hh
9
<<
file
:
__EnableUnstableFeatures
(
"modules"
)>>
10
module foo
;
11
12
class
Foo
{
13
internal
function
callFoo
():
void
{
14
// ^ hover-at-caret
15
echo
"callFoo"
;
16
}
17
}