fix Issue 9987 - Declaring struct ModuleInfo should be allowed
Merge pull request #1932 from 9rnsr/fix9987

Issue 9987 - Declaring struct ModuleInfo should be allowed