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.
37 lines
427 B
37 lines
427 B
--TEST--
|
|
Class method registration
|
|
--SKIPIF--
|
|
<?php die("skip");?>
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
function foo() {}
|
|
}
|
|
|
|
class B extends A {
|
|
function foo() {}
|
|
}
|
|
|
|
class C extends B {
|
|
function foo() {}
|
|
}
|
|
|
|
class D extends A {
|
|
}
|
|
|
|
class F extends D {
|
|
function foo() {}
|
|
}
|
|
|
|
// Following class definition should fail, but cannot test
|
|
/*
|
|
class X {
|
|
function foo() {}
|
|
function foo() {}
|
|
}
|
|
*/
|
|
|
|
echo "OK\n";
|
|
?>
|
|
--EXPECT--
|
|
OK
|
|
|