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.
17 lines
344 B
17 lines
344 B
<?php
|
|
|
|
use native_types;
|
|
|
|
class ReadonlyPropertyNoNativeRef
|
|
{
|
|
public readonly int $integer;
|
|
public readonly float $floating;
|
|
|
|
public function __construct(int $integer, float $floating)
|
|
{
|
|
$this->integer = $integer;
|
|
$this->floating = $floating;
|
|
$this->integer += 1;
|
|
$this->floating += 1.5;
|
|
}
|
|
}
|
|
|