fix Issue 12306 - Struct Enums cannot be read at compile time
Merge pull request #3379 from 9rnsr/fix12306

Issue 12306 - Struct Enums cannot be read at compile time