5 function concrete(TypeStructure
<C
<int>> $ts): void
{
9 hh_show($ts['classname']);
10 hh_show($ts['generic_types']);
12 // any other field will fail
13 hh_show($ts['nullable']);
14 hh_show($ts['elem_types']);
15 hh_show($ts['fields']);
16 hh_show($ts['param_types']);
17 hh_show($ts['return_type']);
19 // make sure kind still works
23 function generic
<T
as C
<int>>(TypeStructure
<T
> $ts): void
{
25 hh_show($ts['alias']);
27 hh_show($ts['classname']);
28 hh_show($ts['generic_types']);
30 // any other field will fail
31 hh_show($ts['nullable']);
32 hh_show($ts['elem_types']);
33 hh_show($ts['fields']);
34 hh_show($ts['param_types']);
35 hh_show($ts['return_type']);
37 // make sure kind still works