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
/
fc_enum_case_3.php
blob
dbeca582cd5e4c9679b7c2b4ec95de54a5fd21c4
1
<
?hh
// strict
2
3
enum Bar
:
int
{
4
FOO
=
1
;
5
BAR
=
2
;
6
BAZ
=
3
;
7
}
8
9
// Non exhuastive match
10
function
do_case
(
Bar
$x
):
int
{
11
switch
(
$x
) {
12
case
Bar
::
FOO
:
13
return
0
;
14
}
15
}