Your file compiles fine after moving the UENUM macro out of the UCLASS . Do not look at intellisense when it comes to delegates, it’s basically a red hearing. If you regenerate your project the underlines will go away.
The file generates no problem. Compile it and run refresh visual studio from within unreal
No errors. The green underlines are ok as delegates do not have implementations in the cpp file they are only declared in the header & later bound and called in the cpp.