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
global statement removal: hphp/test [7/x]
[hiphop-php.git]
/
hphp
/
test
/
quick
/
fc_enum_9.php
blob
1fc67a9d5766d954764f441ccfeedf94789e5f7d
1
<
?hh
2
3
enum Foo
:
int
as
int
{
4
WAT
=
0
;
5
FOO
=
1
;
6
BAR
=
2
;
7
BAZ
=
3
;
8
}
9
10
var_dump
(
Foo
::
assertAll
(
array
(
Foo
::
WAT
,
Foo
::
BAZ
,
Foo
::
BAR
)));
11
var_dump
(
Foo
::
assertAll
(
array
(
Foo
::
WAT
,
1
,
'3'
)));
12
var_dump
(
Foo
::
assertAll
(
array
(
Foo
::
WAT
,
1
,
'300'
)));