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
No error on use of `unsafe_cast`
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
enum_eq_bad.php
blob
b20d69c35c880bd2f08350f7b915908e905fcd1e
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
enum E
:
int
{
5
A
=
1
;
6
B
=
2
;
7
}
8
9
enum F
:
int
{
10
C
=
2
;
11
D
=
3
;
12
}
13
14
function
TestIt
():
void
{
15
$x
=
E
::
A
;
16
$y
=
F
::
C
;
17
if
(
$x
===
$y
) {
18
echo
'same'
;
19
}
20
}