Can a .sv file have just always block?

Hi,

In my project I am having a SV file with only always block. It isn’t a module or package.
I don’t know how it is getting compiled . Why am I not getting a compilation or elab error ?

Thanks,
Swastika

In reply to Swasti101:

You can have one token ( a keyword, an identifier, a number, etc.) in a file as long as the files are compiled in the right order. That’s determined by the command line or using `include. You’ll need to investigate.