TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
473 B

--TEST--
ZE2 A method may be redeclared final
--FILE--
<?php
class first {
function show() {
echo "Call to function first::show()\n";
}
}
class second extends first {
final function show() {
echo "Call to function second::show()\n";
}
}
function main() {
$t = new first();
$t->show();
$t2 = new second();
$t2->show();
echo "Done\n";
}
?>
--EXPECT--
Call to function first::show()
Call to function second::show()
Done