I am making a GUI based application (forms), and encountered the following error.
Firstly, I am declaring the following stuff in a module
Module test_mod
By default modules and classes are Friend (only visible to your assembly).
Your form, however, is explicitly Public, which exposes it and its members to the world - which extends test_mod.main_struct's visibility.
Public
test_mod.main_struct
Declare your module as Public too.