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
/
parent_const.php
blob
ad40f26807c810a73f7be240fc641a186fd9d1e9
1
<
?hh
// partial
2
3
class
C1
{
4
const
int
foo
=
10
;
5
6
final public function
foo
():
string
{
7
return
'foo'
;
8
}
9
}
10
11
class
C2
extends
C1
{
12
public function
test
():
string
{
13
return
parent
::
foo
;
14
}
15
}