Hi,
This was a bug that was recently fixed here:
https://github.com/EpicGames/UnrealEngine/commit/fab3d634d93f067b4154f7cb7ac3cc77281808a8
You can work around it for now by moving your enum to a different header and including it before the .generated.h.
Steve