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
/
test_consts9.php
blob
a138551a988d2250a60b66dad808837a67b9b68a
1
<
?hh
// partial
2
3
abstract class
C1
{
4
abstract const
int
X
;
5
}
6
function
test_polymorphism
(
C1
$inst
):
string
{
7
return
$inst
::
X
;
8
}