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
Fix memoization of functions called with keyset arguments
[hiphop-php.git]
/
hphp
/
test
/
quick
/
fc_enum_3.php
blob
ac58e5c13ebb9724ddb4d7a847787c6024f31092
1
<
?hh
// strict
2
3
// Make sure we can't instantiate enums
4
5
enum Bar
:
int
{
6
FOO
=
1
;
7
BAR
=
2
;
8
BAZ
=
3
;
9
}
10
11
function
test
():
Bar
{
12
return new
Bar
();
13
}
14
15
var_dump
(
test
());