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
global statement removal: hphp/test [7/x]
[hiphop-php.git]
/
hphp
/
test
/
quick
/
prop-access-error2.php
blob
952fc24048586a6cb33a64385c7cc946ae0f5c8f
1
<
?hh
2
3
class
A
{
4
protected
$x
=
1
;
5
}
6
7
class
B
extends
A
{
8
protected
$x
=
2
;
9
}
10
11
class
C
extends
A
{
12
public function
test
(
$obj
) {
13
var_dump
(
$obj
->
x
);
14
}
15
}
16
17
function
main
() {
18
$b
=
new
B
;
19
$c
=
new
C
;
20
$c
->
test
(
$b
);
21
}
22
23
main
();