I have package file which has only one typedef enum variable and I have import the package file in a module, used the enum variable as input and output port.
On EDA Playground, your code works on all four simulators. Either your example isn’t representative of your issue, or you may have encountered a tool issue. Please contact your tool vendor for additional assistance.
Section 26.3 of the LRM discusses the import of enumerated types. The state_t is imported explicitly, but the enumerated literals are not.
As you discovered, using ‘import fsm_state::*’ will import all identifiers, or you can import the enumerated literals as needed with ‘import fsm_state::S1’