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
Handle self, static, super
[hiphop-php.git]
/
hphp
/
hack
/
test
/
shape_analysis
/
solve_constraints
/
const_parent.php
blob
84ccfcbdb79379cd9da4b16e4a477e80a4b4f84d
1
<
?hh
2
3
class
TheParent
{
4
const
dict
<
string
,
string
>
DICT
=
dict
[
"a"
=>
"2"
];
// expect ?'b' key
5
}
6
7
class
TheChild
extends
TheParent
{
8
public static function
foo
():
void
{
9
parent
::
DICT
[
'b'
];
10
}
11
}