%Error: t/t_interface_array_bad.v:22: Expecting expression to be constant, but variable isn't const: 'bar'
   assign foos[bar].a = 1'b1;
               ^~~
%Error: t/t_interface_array_bad.v:22: Could not expand constant selection inside dotted reference: 'bar'
   assign foos[bar].a = 1'b1;
              ^
%Error: Exiting due to
