363d1bb20f
This change is mostly for FB internal organizational reasons. Building is not effected beyond the fact that the target now lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
20 linhas
246 B
PHP
20 linhas
246 B
PHP
<?php
|
|
class Foo {
|
|
protected function f() {
|
|
return 'Foo';
|
|
}
|
|
}
|
|
trait T {
|
|
private function f() {
|
|
return 'Bar';
|
|
}
|
|
}
|
|
class Bar extends Foo {
|
|
use T;
|
|
function inv() {
|
|
return $this->f();
|
|
}
|
|
}
|
|
$b = new Bar();
|
|
echo $b->inv()."\n";
|