title: How to use an enumerated type in a class outside of the file where it is declared in system verilog
body: <p>So I have the following code in bool_struct.sv:</p>
  
  <pre><code>typedef enum {false=0, true=1} bool;
  class my_bool_class;
      bool my_bool_value;
  
      function new (bool initial_bool_value)
          my_bool_value = initial_bool_value;
      endfunction
  
  endclass
  </code></pre>
  
  <p>In checker.sv I want to do the following:</p>
  
  <pre><code>class checker;
      my_bool_class bool_class_handle = new(true)
  endclass
  </code></pre>
  
  <p>My question is, will this compile?  I imagine the "true" in the new call will be out of the scope of the typedef so it will not.  How do I get that "true" in the new call to work?</p>