a.ts(12,14): error TS2322: Type '(B<unknown> | D<void>)[]' is not assignable to type 'number'.
