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.
 
 

32 lines
449 B

<?php
namespace Imported {
interface Output
{
public const VERBOSITY = 32;
}
}
namespace TraitSource {
use Imported\Output as Level;
trait HasLevel
{
protected int $verbosity = Level::VERBOSITY;
}
}
namespace Consumer {
interface Level
{
public const VERBOSITY = 999;
}
class Command
{
use \TraitSource\HasLevel;
}
}
namespace {
function main(): void {}
}