Arquivos
hhvm/hphp/test/quick/trait_method_modif4.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

20 linhas
244 B
PHP

<?php
class Foo {
private 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";