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
/
trait_method_modif4.php
blob
7082ccd0f498603d7c552b5219750b45bb573af8
1
<
?hh
2
class
Foo
{
3
private function
f
() {
4
return
'Foo'
;
5
}
6
}
7
trait T
{
8
private function
f
() {
9
return
'Bar'
;
10
}
11
}
12
class
Bar
extends
Foo
{
13
use
T
;
14
function
inv
() {
15
return
$this
->
f
();
16
}
17
}
18
$b
=
new
Bar
();
19
echo
$b
->
inv
().
"
\n
"
;