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.
 
 

28 lines
409 B

--TEST--
import namespaced function
--FILE--
<?php
namespace foo\bar {
function baz() {
return 'foo.bar.baz';
}
function qux() {
return baz();
}
}
namespace {
use function foo\bar\baz, foo\bar\qux;
function main() {
var_dump(baz());
var_dump(qux());
echo "Done\n";
}
}
?>
--EXPECT--
string(11) "foo.bar.baz"
string(11) "foo.bar.baz"
Done