Accessing struct defined in a class

In reply to dave_59:

I also tried to do declare a variable of type pkd_flds_s as follows but it didn’t work. Is this what you were suggesting?



test t;
t = new();
t.pkd_flds_s inst; // Create a variable of type pkd_flds_s
logic l = inst.c;