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.
24 lines
338 B
24 lines
338 B
--TEST--
|
|
namespace relative qualified constants
|
|
--FILE--
|
|
<?php
|
|
namespace App\Sub {
|
|
const VALUE = 77;
|
|
}
|
|
|
|
namespace App {
|
|
function readRelative(): void {
|
|
var_dump(Sub\VALUE);
|
|
}
|
|
}
|
|
|
|
namespace {
|
|
function main(): void {
|
|
App\readRelative();
|
|
var_dump(\App\Sub\VALUE);
|
|
}
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
int(77)
|
|
int(77)
|
|
|