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
/
shapes_cc_10.php
blob
4e83fb7b6898050bb073a8fb8cd0f7070ad20073
1
//// def.php
2
<
?hh
// strict
3
4
newtype FooType
=
int
;
5
class
X
{
6
const
FooType X1
=
0
;
7
const
FooType X2
=
1
;
8
}
9
10
//// use.php
11
<
?hh
// strict
12
13
// Reject: type of keys is opaque
14
type myshape
=
shape
(
X
::
X1
=>
int
,
X
::
X2
=>
bool
);