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
/
typecheck
/
modules
/
internal_enum_typedefs.php
blob
8ff2e69a40c44770644f977cf84a1c4049191eb0
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
internal newtype X
=
int
;
13
14
internal enum Foo
:
int
{
15
HELLO
=
1
;
16
17
}