%Error: t/t_var_ref_bad1.v:13: Ref connection 'bad_sub_ref' requires matching types; ref requires 'real' data type but connection is 'bit' data type.
: ... In instance t
(.bad_sub_ref(bad_parent));
^~~~~~~~~~~
%Error: Exiting due to