Replication in assignment pattern not working on queue of structure

In reply to rishikpillai90:

Can you show your code somewhat more accurately? The above one works fine for me. I guess there might be some package import/scope resolution issue. The below code works fine for me with the use of package.

package mypkg;
  typedef enum {H_ENUM,A_ENUM} A;
  typedef enum {I_ENUM,B_ENUM} B;
  typedef enum {J_ENUM,C_ENUM} C;
  typedef enum {K_ENUM,D_ENUM} D;
 
  typedef struct {
 A a;
 B b;
 C c;
 D d;
} lp_s;    //A,B,C,D : integer enums
 
lp_s vari[$] = '{    //No difference in result even with unpacked array concatenation
 '{a:A_ENUM, b: B_ENUM, default:0}
};
endpackage

module top();
  import mypkg::*;
  initial begin
    #1;
    $display("%0p",mypkg::vari);
  end
endmodule