3 <<file
:__EnableUnstableFeatures('expression_trees')>>
8 abstract const type TInner
as mixed;
11 class IntBox
extends MyBox
{
12 const type TInner
= ExampleInt
;
15 async
function setState
<T
as MyBox
, TVal
>(
16 ExampleContext
$_visitor,
17 ): Awaitable
<ExprTree
<ExampleDsl
, ExampleDsl
::TAst
, (function(Wrapper
<T
>, TVal
): void
)>>
20 throw new \
Exception();
23 function test(ExprTree
<ExampleDsl
, ExampleDsl
::TAst
, Wrapper
<IntBox
>> $x): void
{
24 ExampleDsl`
setState($
{$x}, 1)`
;